Allow editing documents from view

Closes COUCHDB-2494
This should be `var promise = FauxtonAPI.Deferred()`