Migrants living in at-capacity emergency shelters are packaging cooking oil in Ayer, caring for patients with developmental disabilities in Waltham, and gearing up to clean hospital rooms in Salem. But getting to that point has required a massive undertaking.