WIP: RethinkDB for blaze

actually `mean` is incorrect here. it's called `avg` in rethink