Urls should now fill the JoinGame field.

I tweaked it so that it fills in the id instead of just joining the
game. It also only happens if there is not a game in progress.
Moved sharing to a new static class to remove copied code.