Very simple implementation of some of mongodb aggregation framework functions for Meteor