Make the StubStore more asynchronous.

Before this change, the read and write functions behaved synchronously, which permitted bugs that could otherwise have been caught. With this change, those methods now queue their responses on the scheduler. This change also cleans up some links between the various *Stub and *Checks classes.