Move website/metacafe.lua to media/

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

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

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

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
media/metacafe.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/metacafe.lua: Rewrite parse function

Rewrite the `parse' function for the libquvi 0.9+ series.
* Rewrite `Metacafe.redirectp' as `Metacafe.is_affiliate'
* Remove now obsolete code (e.g. self.host_id)
* Use LuaJSON to parse the media stream URL
* Parse all available media streams
* Apply 2-space indentation
* Parse duration (ms)
* Update vim modeline

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
tests: Add test for media/metacafe.lua

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