The mayor, recorder [municipal court judge], and recorder [municipal court judge] pro tem shall have, ex officio, the powers of a justice of the peace to issue warrants for the violation of criminal laws of the state committed in the City of Warrenton, to commit offenders on examination to jail or to bail them, in the case of a bailable offense, to appear before the court having jurisdiction, or to exercise any other power or authority of a justice of the peace as provided by law.