Maybe merging HTTP, SOCKS4 and SOCKS5 support in one file may be better.