initial multi-period support
integrates multi-period with eme.
fixes unexpected period switching during timeline handle dragging
adds stream existance checking for period switching logic