Client-Server data synchronisation algorithm and API with implementation.