Fixed authentication using StackOverflow (redone)

Applied #46 to the current gae-init-auth code base; see the original PR for details.
Yes go with that one now and we'll file an issue for redirects on errors and what to do there in a more user friendly way