laid out websocket messaging and login/logout; also borked everything