server: Send the sensor states over WebSocket

Send the sensor states over the WebSocket on connection established.
The sensor states are sent as events, i.e. there is a message sent for every
sensor registered and it has the same format as the sensor change event msg.
main: Fix default flag value