Extend preview to support cohorted courseware

TNL-651.

Some code review has already been done on #6258. See that PR for sandbox information.
Very good point. My code was assuming that there was a single cohorted partition, but @cahrens and I decided that it would be cleaner if the user partition id were passed in too. See my most recent commit that addresses her comments.