It's a very-very big update

- add #EXT-X-DISCONTINUITY support
- optimize resource generation
- add dynamic buffer management (testing state for now)
- some fixes and optimization