provision: add function to parse a status from a string
api: add handler for setting the status of a unit

Related to #854.
api: add route in the API for the setUnitStatus handler

Closes #854.