The mayor and council of the city shall have authority to provide for the establishment and maintenance and extension from time to time of a system of sewerage and drainage for the city and shall have power and authority to contract with any person or persons for the purchase of lands or premises to be used in connection therewith, whether inside or outside the city, and shall have the authority and power to condemn private property, either inside or outside the city, in the manner provided for by law, for such purposes. The mayor and council shall have authority to purchase all machinery and plant, to make all contracts with the inhabitants of the city and with others for the furnishing of sewerage and drainage, and to do any and all things necessary for the establishment, operation, maintenance, and extension of the system of sewerage and drainage.