Upgrade couchdb to 9.0
Add additional connection clean up logic and backward compatibility
Merge pull request #388 from jamie-cyber1/couch_9.0

Couch 9.0