A state machine gem designed for RubyMotion.