Add single-sign-on
Refactor cookie domain calculation code
Add support for multinetwork
Merge pull request #8 from humanmade/sso

Add single sign on