[WIP] 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.

Still WIP.
I think the names of this and the below function should be switched. Preferably explicitly mention both the "from" and "to" in the name.