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.
Merge branch 'PROV-837' into develop