All the powers vested in the board of health of towns shall be vested in the city councils, and shall be carried into execution in such manner, by such officers and with such powers, as the city councils shall determine.