Allow editing documents from view

Closes COUCHDB-2494
Oof, it's been a while so I've kind of forgotten. But I documented the problem here (see the final comment): https://issues.apache.org/jira/browse/COUCHDB-2392?filter=-1