Added upsert support when updating with a document. #399
Formatting and changelog.
Formatting.
Merge pull request #407 from F21/upsert

Added upsert support when updating with a document. #399