An ES6 Flux Dispatcher, copied from React TODO MVC example.