COUCHDB-259 allow content_type of attachments to be changed via stub

Patch to allow the content type of attachments to be changed via a document PUT and stub structure. Partially solves COUCHDB-259, but useful anyway. Test included.