[cvs-nhc98] patch applied (hat): Rewrite hat-stack as HatStack for the library, and HatStackText for the user interface (Makefile changes pending)