Wait for CouchDB to start

On slow VMs it can take a few seconds for CouchDB to start. Do
not abort in these cases.
Merge pull request #3 from robertkowalski/fix-broken-run

Wait for CouchDB to start