adds bearer token support for PlayReady protection system
fixes segment index calculation caused by javascript floaing point problem
Merge pull request #282 from MSOpenTech/development

Contains a fix for #281, adds bearer token support