Changes to support running a block before replicator starts.

This allows datastores created from a query to pull the list of
document IDs based on that query.