CouchDB: Make a parameter for doing bulk inserts.

This is to speed up populating large databases. Create a parameter for
putting requests into buffers. These requests are combined into a single
bulk_insert once the requested size is reached. Default is zero that
performs single_inserts rather than bulk inserts.