Socks proxy support

Perhaps others will find this useful. I've been running this for some time, seems to work well.