[client][managed][offline] Implement true upsert
Merge pull request #479 from hasankhan/trueupsert

[client][managed][offline] Implement true upsert