WIP: Batched meta reads and writes

These were all the changes that went into rax-stage. I'll be adding some tests before the merge to master.