Review usage of `mode` after conversion to REST API
Description
Prior to Avoid CORS issues by using /projects/:id/reposi... (!24 - merged), we had hard-coded the mode for files from the API.
After that MR, the mode data was hooked up from the API, but it may not be fully wired into everywhere that it needs to be used.
We should look into that.