Support adding students to a cohort

TNL-163
I refactored this at the last minute and didn't fix this up. It looks like the only variable used in the template now is cohorts, because it behaves differently if there are no cohorts available. I'll remove the other two.