Added a modified socks protocol from obfsproxy. Stripped out references to pluggable transports
Switched logging name from logging to logger to keep it consistent with the modsocks.py file.