Extract Handler logic out of the Netty provider, close #643
Fix webdav