Fixed memory leak when registering Jersey2LoggingFilter. Removed dependencies to Jersey internal classes (that prevented upgrade to Jersey 2.6 and newer).