Fix uploading files to webdav and TT refreshing for upload and download

- implement streaming to webdav