Improved authentication

The package "connect-ensure-login" is being used to return to the
original URL when authenticating.