Quick and dirty port of the CLI to the websockets version
Events are now sent as JSON
Another attempt to fix Travis configuration