[WIP] SOC_U: Implemented some socket functions

This allows FTPony to work.
It's using Berkeley sockets directly since that's what the soc:U service exposes to applications.

Still WIP.
According to http://pubs.opengroup.org/onlinepubs/7908799/xns/syssocket.h.html, domain type and protocol are signed integers.