Refactored some classes
Added ContextListener to initialize and shutdown packet listeners