Webdav fixes

Several fixes to the webdav storage backend and better handeling of .part files in the webdav server.

Also improved handling of incomplete cache data

fixes #3759 (at least with the webdav backend, other backends need testing)

@schiesbn @karlitschek @DeepDiver1975 @MTGap