add test m3u8 files
rewrite save to playlist, add tests
Merge pull request #1 from ingwinlu/saveHLSToPlaylist

improve savehlstoplaylist