Minor tweaks to get the login links right.
Added links for inviting player to a game.
Split application code in more files.