Add machinery to support external transaction coordinators (initial implementation)