Rename HSMBase to HierarchicalStateMachine