Boston and Cambridge’s decades-old district energy system is being retooled to shift away from gas and toward heat pumps and ...