Lots of little fixes for metaproxy

IPv6 loopback socket support.  Change connection/read timeouts.
UrlEncode the embedded URL into the metaproxy.  Restart live streams on
disconnect. If we fail to initialize the proxy, fallback to normal
streaming.