Properly set the eventDispatcher

currently the eventDispatcher always got set to Null if
you don't provide your own eventDispatcher.
Merge pull request #3 from mneuhaus/master

Properly set the eventDispatcher