adds bearer token support for PlayReady protection system
fixes segment index calculation caused by javascript floaing point problem