Adds a ContextListener for Web containers