PROV-837,PROV-841 Properly enforce representation access restrictions (type-level and record-level) for download media feature in search tools

Also include non-primary representations in the downloaded zip.