Initial stab at Windows support

I've pulled together a few techniques used in the hostmaster application and have tested within a limited Windows environment.  Needs review on *nix for regression