The mayor and council of the city shall have the power and authority to control and regulate the running of bicycles, automobiles, motorcycles and any and all other kinda of vehicles in the city, whether said vehicles are propelled by hand, foot, steam, electricity or other motive power; to prescribe the rate of speed and the manner in which the same may be run, and the qualifications of the drivers, chauffeurs or operators of said vehicles; to provide for the registration of said vehicles, and to do any, all and every act and thing necessary or incident to the safety of the same and of the public. The mayor and council of said city shall have the authority to accomplish the provisions of this Section by ordinance and to provide penalties for the violation thereof. f