Changed a lot of  stuff. Cleaned some  annoying formatting of code and tried to separate connection, session  and lobby. When a login is attempted a weird error about the  WebSockets connection being closed is thrown. To be investigated.