Code cleanup for reliable delivery.

Add initial stub for MVCC.