Allow editing documents from view

Closes COUCHDB-2494
Nice, this is clever.