Correctly handle authenitication failures

CouchDB returns a 201 on bulk_docs even if the creation of all docs
fails because of a unauthorized error.
So we now check the whole response to see if every entry has "ok": true.