Reorganized videojs-hls.js

Reorganized videojs-hls.js to make it a bit more readable and set it up for further simplification