Refactor: Separate out UDP server.
Steps to make it easier to introduce the TCP server.
woops, these slipped in. Not used yet.
fixes for windows
Merge pull request #256 from josephwilk/refactor_oschandler

Refactor: Separate out UDP server