Make student profile CSV download a background task, add cohort column

@nasthagiri 

This commit both re-implements the students profile info CSV download as a background task, and adds a "cohort" column to that CSV.

Comments are on #5430