Starting work on Bacon.js version. Code reorganization.
Simplifications based on https://github.com/raimohanska/bacon.js/pull/125#issuecomment-15359806