DW: Added mimetypes in attachements param
DW: Added more attachment info
DW: Resolved the failling test
Merge pull request #634 from onaio/559_Making_media_api_more_consumer_friendly

559 making media api more consumer friendly