fixes redirects after logins

Maintains which route triggered the login and redirects to it after
successful login. Had to use the ng native $location service to get it
to work. I think its related to the hash prefix being set to ! and
throws off the ui-router.

see:
https://trello.com/c/lDVryqGE/354-web-user-should-be-redirected-to-page-which-triggered-login-after-successful-login
fixes proper removal of redirecturl after redirect
Merge branch 'dev'