Added basic communication interface between the REST api and mochad

- implemented the /api/on and /api/off commands