moved duration attribute from Course to Part

This gives us more flexibility, parts can have different durations, and
the duration for a section is the sum of all of it’s parts.  For a
course duration, theoretically a course should have the same duration
across sections, so we are using the duration of the first section.