Allow editing documents from view

Closes COUCHDB-2494
Merge commit '42cdf6886bb2062caa334485cc16b3fd5dcf5030'
Fix post_hook for spawnkillable on linux