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.