Use Bacon.js to implement Flux architecture