The governing body of any incorporated town may establish a police department for the town, prescribe its duties, and define its powers in such manner as will most effectively preserve the peace of the town, secure the citizens thereof from personal violence, and safeguard their property from unlawful deprivations.