The concept of this code is to include herein all ordinances regulating the activity of the citizens, residents, visitors, or other persons of or coming to the town, as that activity relates to the governmental powers of the town to regulate such activity.