Converted state to base64 encoded json data
Updated google.php to support the way of handling state data.
Removed the state decoder as it isn't used at all.
Don't set the referrer at all if it's in the global module from the core app
Merge pull request #1 from Lavoaster/master

New state encoder/decoder and fixed 404 when logging in from login/register page.