File state machine structure and structure factory

The file state machine structure factory is used to load state machine
structures from a text file.  This is useful if the state machine needs
to be defined outside of the program.