The office of the Town attorney is hereby created and established. Said attorney shall be elected by the mayor and aldermen and serve at the pleasure of the mayor and aldermen. His duties shall be prescribed from time to time by the mayor and aldermen. He shall represent the interest of the Town in all courts, and shall attend the sessions of the mayor and aldermen when they request. His salary or compensation for any service shall be fixed by the mayor and board of aldermen.