Pre-windows support.

In progress windows support. Added libraries & helper functions based on
example from msdn. Single controller, manually polled updates only.