The board of commissioners shall require the entire police force to wear badges, and be so armed and uniformed as to be readily recognized by the public as peace officers. And the police shall generally have power to do whatever may be necessary to preserve the good order and peace of the town and secure the inhabitants from personal violence and their property from loss or injury.