Fix many issues with lobby.

The lobby now works. There are still problems with sending data.