make unauthorized access redirect to login
make login redirect to previous location, close #37
Merge branch 'redirects' into develop