WebDav support and assorted fixes

- Added WebDav support
- Merged some pull requests with fixes
- Fixed digest file length check on Windows