Raw Socket API initial implementation

This branch includes common classes and prototypes that are going to be useful for implementing the SysApps APIs and also a fully functional implementation of the TCPSocket interface.