add notion of program in ts demux

Programs are now outputs of ts_demux. Elementary streams are outputs of
programs.