defining the status of the workhouses ordered officers of justice to audit the taxes collected and the management of the funds required for their functioning, and entrusted ultimate control of their administration to a justice of the peace.