Add options to dump_course_structure to output inherited metadata.

@rocha @mulby This optionally adds additional metadata to the course-structure dumps, for the convenience of researchers.