FIX: website/ted.lua: Check for extern media

* Rewrite `Ted.is_external' func using a new embed URL pattern
* Revise `parse' function for minor style changes
* Update thumbnail_url pattern

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Move website/ted.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
media/ted.lua: Relicense under AGPLv3+

See also:
* http://article.gmane.org/gmane.comp.web.flash.quvi/243

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
media/ted.lua: Rewrite ident function

Rewrite the `ident' function for the libquvi 0.9+ series.
* Implement `Ted.can_parse_url' function
* Remove any now obsolete code

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
media/ted.lua: Remove query_formats function

Remove the now obsolete `query_formats' function which is no longer
supported by libquvi 0.9+.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
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>
tests: Add a test for media/ted.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Merge branch 'tg/next__media_port_ted.lua' into next