Add functional login/logout

Remaining to be implemented:

- Forgot password
- Remember me
- Users page access control (make it so that users can only edit
  themselves unless they are admins)