2160 string edit

Basically the follow-up to https://github.com/apache/couchdb/pull/251
The hidden lines of the map function were mean, but are fixed. I put CSP into a separate PR (it applies even now on master). Finally the "you've edited the page" is fixed.