support RFC1929 authentication and configurable listen port
fix socket shutdown issue (previously HTTP/1.0 connections could be left hanging)
support SOCKS4