The mayor shall have such powers and duties as may be provided by ordinance not inconsistent with this Act. The mayor and council shall appoint a city attorney and members of boards and commissions and shall determine their duties and compensation. The city attorney shall be appointed for an indefinite term but may be removed by a majority vote of the mayor and council.