Extend API for stores and tokens

As in #43.
This is wrong; `did` should be the *globally unique* ID for a Diff!