Changing insert to be an optional batch insert.

Make batch insertion the default. Causing issues with loads with multiple
threads but may potentially be faster when inserting into large databases.
The implications of this need proper testing.
Changing the type of exception caught on an update. Allows catching
http errors to retry connection issues.
Merge branch 'master' into handle-503
Putting retries on all the functions in CouchDB
Turn off batch loading by default.
Handling errors in connecting the database.

Retry on an exception in initializing the database.
Also cleaned up some of the messages in handling exceptions.
CouchDB: Parametrize min and max sleep before retry. Change defaults to be low
Bulk_insert initial checkin.