Socket functionality for WindowsPoller

Current state of the Windows port: all tests in common/ pass
Chevrons on next line and indent to match the chevrons above please.