Add business rule when we can add a new order to an item

* Add state_machine plugin to manage the live cicly of a order
Add test database to run specs