SOC_U: Implemented some socket functions

This allows ftpony and ftbrony to work.
It's using Berkeley sockets directly since that's what the soc:U service exposes to applications.
`const X&` is more common IIRC, so please use it instead of `X const&`.