fix login/logout to redirect back to current page

Works for both login links and logout links. Will take the user back to the current page during a WebAuth sign in or sign out.

fixes #99