Reruns/cms server side LMS-11016

This PR is an updated version of this old one: https://github.com/edx/edx-platform/pull/4573
Should our newer things start referring to `course_id`s as `course_key`s instead? I think we need to decide which way we want to go.