Adds an attribute version to Entity objects. The version is used to
ensure integrity when performing the merge operation and for optimistic
concurrency control.