A simple state machine library inspired by Stateless with the requirement to serialise state machine configuration.