A former social worker who sexually abused several boys at a Barnardo’s residential home in East Lothian has been jailed and placed on the sex offenders register.