Implementation of _revs_diff endpoint. Innitial commit.

Let's rename this to `setEntityKeys()` and also create a `getEntityKeys()`.