added title, and ability for any metadatafield to be specified on the attachment mapping fixes #330