make "copypaste SOCKS" and "Simple TURN" samples work with freedom.js v0.6

This pull request covers:
* simple TURN (pretty simple)
* copypaste SOCKS (required a bit of futzing around because the freedom object is interacted with by several different files)

Hoping you can take a quick look.

Also, please take a look at this commit which updates Simple SOCKS. I merged it into the branch before realising this was going to be a decent chunk of work meriting a proper pull request (sorry)
https://github.com/uProxy/uproxy-networking/commit/30c099ec03b82f55019ef66c4363543e81677047

Still working on churn!
Deserves more comment.  What does this function do?