Added a basic framework for a Hierarchical State Machine.
The textbook's version is ugly as hell, though. Multiple
inheritance and boilerplate code all over the place. I'll see
if I can't use a UML view to clean it up a bit.