Setting start position on a live stream

Live start position should be 30s before live, not at the beginning of
the stream playlist.
Add a 'bandwidthupdate' event
Using segment length (not average) to snap to live

Counts segments using their individual duration to look back 30s from
live to set video start position
Move bandwidthupdate event up in loadedmetadata
Adding a null check on the playlist

Some unit tests were failing when selectedPlaylist.segments was
undefined.
Use setBandwidth in loadedmetadata
Live start time tweaks & tests

Adding a test for live start position and tweaking some of the code
Merge pull request #183 from videojs/trigger-bandwidth-events

Add a 'bandwidthupdate' event
Adhering to code style

Some syntactic changes to better align with code style standard
Correcting live first segment

Start time was going back one segment too far due to an array indexing
error
Solving the hang on transition issue

Addressing the issue where video playback would hang when transitioning
to a different quality stream with a large discontinuity in media
sequence.
Correcting for failed tests

Some tests failed in the previous build, mostly due to syntactic
errors. Also restored a section of code in translateMediaIndex whose
absence made a test fail.
update.duration was sometimes undefined

Removing the update.duration === Infinity check. We shouldn’t be
getting so out of sync for static playlists anyway.
Merge pull request #184 from bc-bbay/master

Setting start position on a live stream
0.10.1
merge upstream
only issue endOfStream in vod mode