Remove local folder cache when identical to remote after sync (refs #629)
Add missing (explicit) return statement
Update existing local itemsMap on remote changes
Test that local dir node is deleted after fetching new document
Test for keeping local itemsMap when there are still pending changes
Test that remotely deleted documents are removed from local itemsMap
Merge pull request #632 from remotestorage/bugfix/629-fix_cached_folder_nodes

Fix cached folder nodes (fixes #629)