fix(events): refactor code to use the event emitter pattern
Merge pull request #18 from redgeoff/delta-events

fix(events): refactor code to use the event emitter pattern