add fileType option to download, and add optional downloadName

Optionally overwrite resourceId with something different for the base download fileName

(needed for admin app while we temporarily still have to download some resx files)