Long polling

This PR replaces the websockets communications by long polling.

Trello card: https://trello.com/c/pWqVMMVf

**WIP: do not merge ಠ_ಠ**