DS-1622 Porting of the Login As feature to JSPUI

This is a rebased and squashed version of the pull request
https://github.com/DSpace/DSpace/pull/284