Added kerberos support and some User improvements