publish course content when disabling draft state

test plan:
 1. have an account with draft state allowed
 2. have a course in the account with draft state enabled
 3. have unpublished things in the course:
   - quizzes
   - wiki pages
   - assignments
   - discussion topics
   - modules
   - module items for each of the above
 4. turn off draft state in the course
   (not in a parent account)
 5. verify the unpublished quizzes are still unpublished
 6. verify the unpublished wiki pages are now "hide from students"
 7. verify the unpublished assignments, discussion topics, modules,
    and module items are now visible to students
 8. re-enable draft state and the things that were published by
    step 4 should still appear published (green cloud icon, etc.)

fixes CNVS-10358

Change-Id: I3945b21f7e700d427cbaf98289b5db658b61f73f
Reviewed-on: https://gerrit.instructure.com/28650
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
Product-Review: Bracken Mosbacker <bracken@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>