Fixes #8. Implements OpenID authentication/deauthentication flow