Sync per node instead of all at once

our current approach to sync, traversing the whole tree and firing off many many requests to the server, is not scalable: if more than 10 changes need to be synced, all of them will time out and fail, and the next sync cycle will not recover from that.

to deal with this, i'm storing much more data for each node, see `data-format.txt` (design doc for this branch, to be moved into the documentation somewhere before merge).

Tasks:

* [x] remove existing sync entirely
* [x] move all but basic functionality from `indexeddb.js` into `cachinglayer.js`
* [x] switch to new data format for G/P/D functionality of `remoteStorage.local`
* [ ] remove duplicated non-basic functionality from `localstorage.js` and `inmemorystorage.js`
* [ ] make existing tests pass 
* [ ] add some more tests for the G/P/D interface
* [ ] write tests for sync
* [ ] write code for sync
* [ ] write migration code for data format (`onupgradeneeded`)