Said Town shall have the authority to exercise all powers relating to municipal affairs conferred and granted by law, including those implied powers necessary to effectuate and execute granted powers.