Implemented transactions in sync client.
Merge branch 'master' into tests