Implement bulk operations on the split modulestore.

It would be nice to have a comment here  to explain the need for this code.