Added batched_replaces_t, everything except hooking _that_ up to the query language code.