Refactored the HTTP application instance, made the media interface class static and deleted the connection manager.