HLS-related improvements, fixes for "bad" devices

Avoid streams not playing on certain devices.
Clarify some comments and log messages.
Allow player to specify user-agent.