implemented web API

examples:
127.0.0.1:8080/api/channels/3/on
127.0.0.1:8080/api/channels/all/off