Firefighters in Massachusetts battled dozens of fires believed to have been caused by gas explosions.