Replication coordinator fsm done. Just needs polishing