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 added a comment at some point saying that I should be using that