Implemented basic SOCKS4a functionality

I copied the code from the SOCKS4 implementation over to SOCKS4a. This
gives it basic functionality, but does not include hostname resolution.