versioning improvements

* use revision that comes back from PUT (fixes #545)
* save local changes in parent as they happen (fixes #565)

this pull request replaces #568, making the same improvements but without splitting the store into two stores. This way it's better because that leaves room to fix #585, because there it will be necessary to store revisions on items (and not just in parents).