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

If you're using pending only in postStop for this socket actor, maybe you could move that code to when we get Terminated on the socket actor (which we get due to this watch)