Added a SOCKS proxy to make lnsd easier to use.

The SOCKS proxy code was imported from another SOCKS proxy I wrote
(which is why it seems a little out of place) and lns suppor twas
hacked into it.