Add upsert_doc/4 and /5
Merge pull request #16 from arjan/upsert

Add upsert_doc/4 and /5