Persist event map on target object

This allows doing things like the following:

var foo = {}
StateMachine.create({target: foo.prototype, events: [{name: 'startup', from: 'initial', to: 'newstate'}]});
StateMachine.create({target: foo.prototype, events: [{name: 'doSomething', from: 'newstate', to: 'somethingstate'}]});
foo.startup();
foo.doSomething();