LPS-37784 Fix bug introduced in previous commit that made the link to "Site Administration" not work
LPS-37847 The "My Sites" menu does not preserve impersonation

I solved it by changing ViewAction because the two PortalImpl methods it uses are too generic and several invocations assume there will be no doAsGroupId or no parameter at all.
LPS-37846 JavaScript error when accessing control panel if the first portlet needs to load implicit main.js file

When automatically selecting the first portlet always issue a redirect, because otherwise the portal doesn't know that portlet is going to be displayed. This will not only solve LPS-37846 but many other potential bugs similar to this one.
Revert "LPS-37847 The "My Sites" menu does not preserve impersonation"

This reverts commit 8d0b8b3c0cf5f778d4a8a1b6ea27ccedcb8fdb1b.
LPS-37759 Corrected device list
LPS-37765 Modified condition to show backURL
LPS-37772 This property is handled in a generic way, so if we're changing one we need to change all of them