Added ability to use couchdb host and port from env variables.