statemachine can now set a metatable in options

I added a patch to allow users to set the metatable in the options, so you can make any instance of the class contain the callbacks, like the documentation says you should be able to do.