Opaque debugging squashable
change get_course_by_id to raise 404 if course not found