rebased atomic-updates from master
add tests cases for using sampledBy with combined stream
re-implement sampledBy, by a simpler one. it also passes the new tests
cleanup
add TODO
build js
fix cleanup bug
return value tuning
build js