Feature/login redirect

selectively clear session when current page has a login link (and user wasn't redirected from failure app).