moved session/player id generation to lobby. Added flags for sockets
added lobby support for test client