LPS-31497 Fix Test

1) Use MainServletExecutionTestListener to load portal custom layout templates.
2) After creating a layout based on a layout prototype, changes must be propagated so that the type settings from the prototype are copied to the layout.
Test Fixes - portlet/documentsandmedia
LPS-32449 Reuse existing preferences in the method and no need to send a request as a parameter (necessary for LPS-30300)
LPS-31191 Constants should be in interface and not in helper util
LPS-31191 Don't go back out
LPS-31191 Use implicit var
LPS-32558 Fix Message Boards Portlet undo problem.
LPS-31845 Don't add subscription when previewing or saving a draft message
LPS-31845 Sort
LPS-32734
LPS-32734 Add parameter used to determine which user group user layout to use for the back url since what we depended on before, scopeGroupId, is not always preserved (it can change clicking around in the control panel)
LPS-32734 tld
LPS-32734 make the name point to the real site and not the user group site
LPS-32946 Adding audit fields for RepositoryEntry
LPS-32946 Implementation changes to RepositoryEntryLocalServiceImpl
LPS-32946 source formatting - order of logic
LPS-32946 Updating DLPortletDataHandler accordingly
LPS-32946 Applying CMISRepository changes accordingly
LPS-32946 UpgradeProcess for RepositoryEntry
LPS-32946 Autogenerated