Fixes issue#14

This pull request fixes the problem stated at https://github.com/rtwomey/stately/issues/14 .

This changes to have a state machine instance as class's instance variable. As far as I tested all specs passed including a new spec I added for the issue. However, some specs got a small change in light of the code change.

Please have a look.