Feature/refactor

refactor the HTTP API.

Goals:
--------

- use websockets instead of eventsource to get the streams on the client side
- go to sockjs for JS clients
- simpler HTTP API to access to the resources