hconsole: Major refactor.