SOC_U: Implemented some socket functions

This allows ftbrony to work.
ftpony seems to have some issues with WinSCP not opening the data channel and then refusing to accept further connections. It works fine with two telnet sessions though
It's using Berkeley sockets directly since that's what the soc:U service exposes to applications.
@bunnei feel like clarifying? :p