The mayor and council may appoint such deputies as they may see fit. Each deputy so appointed shall have and may exercise all powers, duties, functions and authority as shall be vested in the principal officer for whom he is deputy, including all powers, duties, functions vested in the principal officer ex officio. All deputies shltll serve at the pleasure of the mayor and council, shall receive such compensation, and shall give such bond as the mayor and council shall provide. ..