#JC-1622:
* Added redirect to referer apge when user is logged in
#JC-1622:
* Added redirect to referer page when user is logged in via /login page
Merge remote-tracking branch 'origin/master' into JC1668-permissions_manager
#JC-1668 clean