Fixed authentication using StackOverflow (redone)

Applied #46 to the current gae-init-auth code base; see the original PR for details.