Section 47. No coffee house, so called, or tea house or place of resort for refreshment where the principal business is or purports to be the sale of coffee or tea as a beverage shall be maintained in any town which accepts this section, or has accepted corresponding provisions of earlier laws, by a vote of a city council or by vote of a town at a town meeting, until a license therefor has been granted by the licensing authorities. The fee for the license shall be five dollars or such other sum as shall be fixed from time to time by the city council or selectmen. Licenses issued hereunder shall expire on May first following the date of issue, and may be revoked at any time by the licensing authorities. Whoever violates this section shall be punished by a fine of not more than one hundred dollars.