Add docstring
Refactor sso endpoint

Provide a usable and working implementation by adopting principles
used by the official GAE discourse implementation.

We keep the handling of anonymous requests and the user handling naive
Redirect to signin form with correct came_from variable