Use location.hostname instead of hardcoding johnme-gcm.appspot.com
Auto-register using username query parameter.
Workaround for Push reg failing on fresh SW