Allow editing documents from view

Closes COUCHDB-2494
Curious: I just tested the view, afterRender is just called once. What do I have to do to render it twice?