'The common council shall have full power by ordinance: * * * To provide for and control the erection and operation of gas works, electric lights, or other works or material for lighting the streets and alleys, public grounds, and buildings of said city, and supplying light and powe