Replace WMI class with Win32 APIs for routing

Useful for using the HTTP metadata service during
specialize on boot after Sysprep
Improves metadata exception logging