statesTransitionMap added, methods to check availability of transition to another state added

Hi! I've added methods to check ability for transition to another state and get available states. You may see README.md for more details. 

I've also added composer descriptor for make your extension accessible through composer package manager. But you should fix it to point on your repo.