Update CouchDB to v1.4.0; update medic-core version to v1.4.0.