SOCU: Some style changes, few functional changes

There seems to be a problem with WinSCP not connecting to the data channel opened by ftpony, it seems to work fine on ftbrony