Create auto cohorts when list_cohorts is called.

TNL-186
Note to reviewer: I moved this code from test_cohorts.py. The only part that is new is the update_item call on the modulestore at line 65. This was needed for test_views.py, which is using mongo and expecting changes to course settings to be persisted.