Moving socket stuff to core/.
Stubbed win32 methods.