Allow DummyApi replies to be asynchronous so that properly asynchronous test cases can be written against it.

Currently it's very easy to write code that passes tests but fails in production because the code relies on the DummyApi calls returning synchronously. We allow the DummyApi to operate asynchronously so that people can write better tests.