Create a stream so that you can upload a document with attachments to CouchDB more efficiently in multipart/related format