When looking at a download page the server only makes one request to getfiles.
Changed the API so that /api/courses returns a list of name and aliases of the courses and that /api/courses/:course_alias returns a list of the name of the course and the files associated with it.