rewrite saveHLSToPlaylist

as mentioned in #73, #72 and #71 saveHLSToPlaylist needed a rework because it got too messy.

This implementation only parses the downloaded data one time and is easier to maintain/read then the old one.

Please note that I haven't tested this with XBMC as @MrSprigster needs to implement the XBMC side for the new quality setting 'Mobile' anyway.