Framework to build client server applications with active replication and total order message delivery