add client wrapper similar to what JS offer https://github.com/aerogear/aerogear-js/tree/diff-sync-client