[WIP] Complete implementation of websockets on the server

Modify existing code for websockets on the server to handle new requests/responses from the client.
What's this message for? "Here's my token." "okay, you're signed in" "okay thanks for signing me in"