flattens directory structure as new remotestorage does not allow files/dirs with same path; fixes new remotestorage does not fire change events when adding data