Flux like dispatcher with promises.