MYFACES-2785 Clean up initialization code and add tests for StartupServletContextListener and MyFacesServlet