[MOD] WebDAV: refactored the existing implementation to allow integeration of Milton2