added webdav support
updated code, added example
fixed tests