Extend preview to support cohorted courseware

TNL-651.

Some code review has already been done on #6258. See that PR for sandbox information.
since this model has no concept of partition, how do we know which partition on which to set the masqueraded group?