Adapted admin for new StateTransitionMachine

* Fixed as well all the AbstractEntity dependencies