Merge pull request #540 from MorganDawe/7.x-EMIC-210

Removed rng => application/xml mapping.
Updating extestion and mime detection on download to use drupals file_g=default_mimetype_mapping() funcitons.
Updated file extension logic on ds download.