Proper transaction handling in case of failure or in case of renaming a folder to the same name.
Fix issue of not being able to change the owner of a folder without changing it's name as well.
Small performance improvement when checking for duplicate folders.
Merge pull request #8 from pbs/update_files_on_folder_rename

Various improvements and bug fixes