Initial implementation of socket API with Oars

Still buggy (leads to SIGSEGV on GC)
Resolved stablity issues