Added a drop-down login / logout element for clarity and a logout() method for
completeness.