Replaces sbt AJAX calls with web socket. Also some refactoring of code.

I think `case JsSuccess(payload)` works? If not it should ;-)