Port uproxy-networking to freedom 0.6

I suppose I'll leave this as is.  I'm a little concerned about the scoping rules if I use "function".