clean up some logic about socks
rewrite local.coffee
implement CMD CONNECT
format change
format encrypt.coffee to coffee style