Improvements related to freedom-compatible interface for socks-to-rtc

I accidentally merged the last pull request (https://github.com/uProxy/uproxy-networking/pull/170) before all the comments were in, so this one will have to serve as a continuation.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/uproxy/uproxy-networking/171)
<!-- Reviewable:end -->