Port uproxy-networking to freedom 0.6

Do we need the `var`? I think TypeScript will do the right thing without it.