Auth redirect

Fixed login/logout redirect to return to referring page.