Extend VTTCue/Region with methods needed for testing and NodeVTT.

- Be able to convert VTTCues/Regions to and from JSON. Remove properties
that aren't needed in JSON format of VTTCues such as _reset,
getCueAsHTML(), and displayState.
- Be able to construct VTTCues/Regions from option objects.