Add protocol to $conf['webhost']

Just detect the current protocol, need this to do a rewrite to https if
needed
Secure authentication

Added some stuff to enable admins to force https when authenticating