City Solicitor. Terms of Appointment. Right to retain costs in cases in which he appears on behalf