Extend preview to support cohorted courseware

TNL-651.

Some code review has already been done on #6258. See that PR for sandbox information.
i withdraw my question, as i found the answer further down.