Updated the FilesController so that it serves files correctly.