Add ugly bulk indexing

I've added a few utility functions (create/delete index), a bulk indexing function, and tests to cover them.
This is intended as a starting point for discussion - parts are clumsy at best. It does appear to do more or less the right thing though, even if it's not using anything clever like pipes or conduits.