Allow editing documents from view

https://issues.apache.org/jira/browse/COUCHDB-2494