implement PutDocument for updateEntity

The card says "extend ES package with a updateEntity for doc update functionality (not just adding new doc) " PUT does both add and update.

GetDocument comes along for the ride so that we can have proper tests.
Done. Thank you.