Allow editing documents from view

Closes COUCHDB-2494
we need it in both because we're reusing all_docs_item.html for both all_docs and for showing our views