fixed #2123: Refactoring network extension, fixing unlikely memory leaks, adding PUT/DELETE methods.