Kerberos SSO authentication

Implements basic kerberos SSO authentication.
also, import subprocess