Some refactoring, and introduction to web sockets.