Code reorganisation - move more HTSP processing into the htsp receiver thread, and also change the avplay() function into a thread, which we can control from the main UI loop.  We still do not have a UI for file playback though - use the x key to toggle between live TV and playback of the file specified with the --avplay option