Extend preview to support cohorted courseware

TNL-651.

Some code review has already been done on #6258. See that PR for sandbox information.
in course_groups.cohorts.get_partition_group_id_for_cohort we return (user_partition_id, group_id) - i think it's best if we standardize on a consistent order.