Tweak title for policy history page
Redirect back to original page after login and logout. Fixes #501