(w) Legislative body means (1) the board of selectmen in a town that does not have a charter, special act or home rule ordinance relating to its government, or (2) the council, board of aldermen, representative town meeting, board of selectmen or other elected legislative body described in a charter, special act or home rule ordinance relating to its government in a city, consolidated town and c