hconsole: Added HWindowFactory class to support loading HWindows from XML resource file.