The council shall have the power to pass all such ordinances not contrary to the Constitution and laws of the State of Maryland or this charter as it may deem necessary for the good government of the town; for the protection and preservation of the town's property rights, and privileges; for the preservation of peace and good order; for securing persons and property from violence, danger, or destruction; and for the protection and promotion of the health, safety, comfort, convenience, welfare, and happiness of the residents of the town and visitors thereto and sojourners therein.