add ability to create/update attachments using HTTP PUT

Allows for adding/updating attachments using simple curl command:
curl -XPUT .../db/doc_id/attachment_name?rev=document_rev_id --data-binary @attachment_file