plugin: Add a stream_weight classmethod.

Allows plugins to specify stream weights themself
rathar than relying on the builtin ones.
stream: Use correct type name in __json__.
plugins.ustreamtv: Refactor and add support for UHS.

UHS is UStream.tv's own hybrid RTMP/HTTP streaming protocol.