Simple history endpoint populating (ready for review)

There are far too many variables and far too little work done here to keep waiting for
anything. There's one glaring TODO here, and that's filtering by tenant id. Other than
that, this is the simplest thing that could possibly work; no worker, no authentication,
no http pooling.

Comments welcome.