Socket functionality for WindowsPoller

Current state of the Windows port: all tests in common/ pass
Order or comment please.