encapsultate bandwidth routine
Fix bandwidth test.
Also, update phantom.

Conflicts:
	src/videojs-hls.js
Fix tests
Ignore top level videojs events
Request a new playlist based on initial playlist
call fillBuffer immediately, if a user tries playing
When creating new playlist loader, dispose previous one, if exists
Don't downswitch initial selection
move comment
Actually don't downswitch
Fixup and add test for switching
set high bandwidth so we don't switch
we want to switch if bandwidth is undefined
use Math.floor not parseInt
Update comment and test name
Delay fillBuffer. Upshift if dl time less than 1s.
Only set up timeupdate and waiting event listeners for fillBuffer and
drainBuffer after we have upshifted. This is so that we would download
the first segment of the new playlist if the player is setup with
autoplay or a user clicks play too early.
Also, we should only upshift if our estimated download time for the new
segment is less than one second. This is done by estimating the duration
length of the segment of the new playlist with the duration of the
current segment in the current playlist.
Add a fudge factor to smart upshift
A playlist loader setBandwidthByXhr. Fix a test.
If dl time is falsy, set it to Infinity
We always have an additional call to selectPlaylist