Big clean up of ShellWebSocket. Got rid of the functions, moved
everything into the class, and commented a lot of the code. Much better.