Implement SSO using the new built in SSO from discourse.

  * Use some homegrown code to share cookie session.