Fix deletion of folders.
Fix uploading new files, as well as marking folders as seen.