LPS-35256 Fix bad SF
LPS-35256 2 more places
LPS-37794 Remove main()
Revert "LPS-37483 web.xml listener elements should only be consolidated into portalListenerClasses context-param if security-manager-enabled=true"

This reverts commit e4d5204644a66d6d23aefdb75f01e06831b94ea4. It is causing PluginsContextListener to be executed after the custom context listenters definied in the plugins.