move deepClone and pathsFromRoot to RemoteStorage.util
move equal from cachinglayer to RemoteStorage.util
move tests for isFolder and isDocument into the util suite
fix isDocument usage in src/sync.js