Switch to string state for Order
Add states & transitions configuration
Merge pull request #1426 from winzou/state-machine

Use Finite State Machine