Add websockets
- Use autobahn/twisted to create a websocket around flask API
-
Authenticate with handshake message containing authorisation header in body
- Authenticate with same token issued by API token endpoint
- Handle handshake messages cleanly
- Figure out what to do on auth failure
- On auth start listening to client-inbox in new thread
- On message write to client-outbox
- On message in client-inbox ws.send to client
- Handle disconnect
- Rebase up to v0.1