Kerberos SSO authentication

Implements basic kerberos SSO authentication.
I guess so. Moved.