Some improvements (couchdb-harness progress)

Makes some couchdb-harness tests pass. (in bulk_docs, attachment_names & basics (after nick-thompson/couchdb-harness#3) IIRC).