Add initial authentication logic for submitting a POST request to
/_session.

And add logic to strip trailing slash from the server when saving a
server alias.