Bugfix to enable downloading of uploaded files for platforms and
features (FT-510). Also refactored the method of checking authorization
for the files, which improved the performance dramatically