Persist event map on target object

This allows doing things like the following:

```javascript
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();
```