Merge remote-tracking branch 'iilyak/2561-make-config-API-consistent'

This closes #3

COUCHDB-2561