Massachusetts is coordinating a statewide response as a sewage overflow in Haverhill continues to dump millions of gallons of wastewater into the Merrimack River.