Add take_value/2,3 to couchbeam_doc module

Function returns the value of a simple key/value property in json object and
deletes it from json object.