Added HTTP API which can be used by external clients to remotely control the relays.