Extend API for stores and tokens

As in #43.