Course keys use key introspection

@brianhw, @watsonemily, @srpearce, and @stroilova, please review.
Question: is there an impact on CommentThread.commentable_id for
discussion threads?
Merge pull request #5633 from edx/ahodges/doc/DOC1001

Course keys use key introspection