Fix problems with resource handling, hide download link when dataset not directly downloadable.