Merged K2-related WebDAV server code.