Add VM Hook definitions to use custom states.
Merge pull request #81 from chrisN777/hooks_custom_State

Add VM Hook definitions to use custom states.