Convert HPGauge to kh2Bar

kh2Bar is a generic implementation that can be used in any project. The
original HPGauge class relied on some functionality of the Specs core
(namely, the threader) and would be more difficult to port.