Add duration property to new media API

Range and duration are not necessarily the same thing for HTML5 media devices, so expose getDuration() to ensure that clients can get the true media duration as well as the seekable range.