Add menu to navbar.

Also involved adding a logout function and corresponding view/url.