add fileType option to download, and add option to not user resourceId for download filename

(needed for admin app while we temporarily still have to download some resx files)