Fixing create game error - endpoint required trailing slash.

Re-arranged the code a bit to ensure that url_base always has a trailing slash.