Fixes three issues found while testing RC1 v2.3.0
Created by: dsparacio
- Multiperiod duration was getting set with call to source signalEnd at non last period stream.
- cleans up hack for calling signalEnd from buffercontroller by setting the value to the event is fired the second time a stream is complete if replayed not reloaded
- Allows replay of stream if play is called after complete event with new schedule logic.
- Cleaned up some old es5 code in areas I made adjustments but then stopped doing that since it is code freeze. I left in what I started as it was minor.
All changes are pretty minor but solve some critical stuff.