add a beforecreateportal event to gxp.Viewer

This will allow applications to change this.portalItems before the portal is actually created.

This was done to have the Mareano application inherit from GeoExplorer without having to copy a lot of the GeoExplorer code of the initPortal function.