Remove trailing whitespace
tests: Update reference data
Update gen_ref_data to use svt's ?output=json
Use ?output=json instead of extracting from HTML

This makes the extraction code much simpler, and it also adds support for the
new "kanaler" stuff (the 24/7 live streaming of the TV channels).

This change required a good deal of unittest redesign.