support m3u8

Closes #941

And supports HLS when natively available (part of #1052)