Use the event dispatcher to execute actions
Fixed failing tests
Merge pull request #10 from inspiran/master

Use the event dispatcher to execute actions