adding redirect and authenticate as middleware on login/logout
redirecting to referer after login/logout
Merge pull request #42 from leaena/auth-redirect

Auth redirect