Did away with the ApplicationState singleton and replaced it with a more
reliable ServletContextListener