The mayor and aldermen shall have power to regulate the keeping of gunpowder, gasoline, and other combustibles and explosives, to make regulations for guarding against fires, and to fix and establish fire limits and from time to time to change, enlarge or restrict the same; to regulate the kinds of buildings to be erected, and the material and construction thereof; and to grant or refuse permits of all kinds of buildings and other structures to be erected in said Town.