Set initial stream to be played to first entry in M3U8 playlist

According to HLS especficiation we should play initially the first item
in the m3u8 playlist:
"The first entry in the variant playlist is played when a user joins
the stream and is used as part of a test to determine which stream is
most appropriate. The order of the other entries is irrelevant."
from:
https://developer.apple.com/library/mac/documentation/networkinginternet
/conceptual/streamingmediaguide/UsingHTTPLiveStreaming/UsingHTTPLiveStre
aming.html#//apple_ref/doc/uid/TP40008332-CH102-SW18
Fix bug where syncFound was flagged as false incorrectly

This was causing byte-level sync issues with throttled (and potentially
other) streams
Fix bug where syncFound was flagged as false incorrectly

This was causing byte-level sync issues with throttled (and potentially
other) streams
Fix issue where check for final slash was comparing zero-based index with length
Fix for some invalid url handling; in this instance, the utility class is not doing the same thing the replaced line is doing.
Merge pull request #60 from jnoring/master

Two bugfixes
Merge pull request #58 from danii-nebot/upstream_fixbug

Fix bug where syncFound was flagged as false incorrectly
Merge pull request #57 from danii-nebot/upstream

Set initial stream to be played to first entry in M3U8 playlist
Remove unused as3crypto stuff; it can always be re-added when it is actually used.  Also clean up a few code warnings, and comment out a few mp3 variables that are interesting to know but not used in the actual program flow.
Merge pull request #61 from jnoring/master

Remove unused as3crypto stuff.
Merge remote-tracking branch 'upstream/master'