Bug 879669 - Part1: Refactor of TrackEncoder.
Bug 879669 - Part2: Add VideoTrackEncoder.
Merge pull request #1 from shellylin/media-recording

Part1: Refactor of TrackEncoder