Allow editing documents from view

Closes COUCHDB-2494
@benkeen,

could you take a look at this when you have a chance? The afterRender function being called twice had thrown me for a loop for a good chunk of time (and in my googling what was going on I saw you posted some threads about it!).

I just want to double check with you and make sure deleting hasRenderedOnce doesn't destroy something else down the line...