media/ted.lua: Rewrite parse function
Rewrite the `parse' function for the libquvi 0.9+ series.
* Implement `Ted.iter_streams' function w/ improved stream parsing[1]
* Implement additional `Ted' functions, e.g. `Ted.ch_best'
* Parse additional properties[2] for self-hosted media
* Remove now obsolete code (e.g. self.host_id)
* Apply 2-space indentation
* Update vim modeline
[1]: Unlike the 0.4 equivalent, this rewrite parses additional
self-hosted media streams, both "HTML" (HTTP) and "streamer" (RTMP)
[2]: duration_ms, video={width, height, bitrate_kbit_s}
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>