CLOUDIFY-2393 added support for optimistic locking in elasticsearch storage; update now uses 1 upsert call instead of querying before update