hconsole: Added HWidgetFactory class.