03/27/2014 - fixed joinRoom(), handleRoomJoining() and handleCreateRoom(). Added necessary dbaccess functions to as many places as I could think of. Theoretically, one should be able to create a room and start a game, but this is untested.

Incompatible with the "/join" command, because this relies on the user selecting a room and sending over that room's host socket id.
03/27/2014 - fixed joinRoom(), handleRoomJoining() and handleCreateRoom(). Added necessary dbaccess functions to as many places as I could think of. Theoretically, one should be able to create a room and start a game, but the client has to pass the right messages (e.g. "join" is now "joinGame").

Incompatible with the "/join" command, because this relies on the user selecting a room and sending over that room's host socket id.
03/27/14 - added a createRoom() function for the chat ui to call. processCommand is still there, but commented out because it shouldn't be part of the final game. We aren't using '/join' or '/nick'--instead users will be selecting rooms to join on the list. Plus, nicknames cannot be changed.
03/27/14 - changed the functionality of the create room button event. Instead of calling processCommand() with '/join', it calls a newly-created function in chat.js called createRoom() so that the host socket id can be passed along with room name and size.

Also, changed the way rooms are displayed on the list. The function accepts two parameters now: the array of host ids and the array of names for each room (with host ids as key). This makes chat.js compatible with the new way the game_server.js runs.
03/27/14 - tested version, should work in creating rooms and attaching host ids to creating rooms. Also, dbaccess functions should be correctly implemented (all except for updateUserRoom() at this time of writing).
03/27/14 - last update
03/27/14 -
03/27/14 -
03/28/14 - all database functions commented out, but theoretically they should work.

This version of game_server.js has pretty much everything working (provided client-side is the correct implementation) except for the sending of the list of avatar urls to populate the user list and the aftermath of disconnect or when a user leaves a room.
03/28/14 -
03/28/14 -
03/28/14 -
03/28/14 - fixed bug where messages sent were seen by everyone, regardless of room.
03/28/14 - fixed bug where messages sent were seen by everyone, regardless of room.
03/28/14 - fixed bug where messages sent were seen by everyone, regardless of room.
03/29/2014 - working version with broadcasting
03/29/2014
Matt Chan