RCOUCH-18: sync with latest couchdb changes & latest private rcouch release

PR to track https://jira.refuge.io/browse/RCOUCH-18