inspect_discussion_ids improvements

Improved inspect_discussion_ids:
* Parameterized by courses
* More audit trailing
* dry_run and fail_fast switches
* counting actual number of updated records
@chrisndodge @smagoun We'll need to figure out reference courses for these too if we want to recover them at the same time.