Bug 852541 - Fixed to handle GAIA_DOMAIN set to something other than default

Default domain is gaiamobile.org, but it now handles whatever is there.