Call endOfStream after the last segment has been buffered.

When the last segment in a playlist is appended, call `SourceBuffer.endOfStream()`. Fixes #111. Avoid using 1.10.3 of sinon.js. Make sure hitting play when a video ends restarts playback.
Got it, thx.