fixed the SOCKS proxy
ported test to using EmbeddedChannel and cleaned and simplified proxy code