Make create_mapping easier to test.
Add an xid column defaulting to txid_current() on postgresql to enable eventual consistency in elasticsearch indexing.
Merge remote-tracking branch 'origin/es_rest_api' into 867_collection_redo
Included sorting of the results!