introduced a Dispatcher

attempt at implementing a `Dispatcher` based on the [flux pattern](https://facebook.github.io/react/docs/flux-overview.html)