first attempt adding SOCKS proxy feature
modifications for chatsecure
writestream poxy