redirect to original target page after logging in
Merge pull-request #274 (url redirection/session expired)