Factor out WebDAV functionality
It would be good to factor out the WebDAV functionality and maybe even put it into a dedicated library. This could be used to cleanup the code and make it more event driven (currently, it heavily relies on semi-blocking calls, which makes implementation easier in the first shot but error propagation is more difficult).
Edited by Martin Hoeher