Moved webdav functions into webdav.c