WIP - Add Studio support for cohorted courseware

TNL-652
Good question. There's a circular import problem when I imported it at the top of the file, while this way it lazily imports it only when it is actually required. I had to do this in a couple of places. I'm happy to hear of a cleaner way to do this if there is one.