Subject to the Highway Traffic Act, for regulating traffic on the highways and for prohibiting heavy traffic as defined in the by-law and the use of traction engines and the driving of cattle, sheep, pigs and other animals during the whole or any part of the day or night in certain highways and public places specified in the by-law, and for prohibiting traffic in any but one direction in highways