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

does "activator" add anything here over just using a number?