Collection of common map_reduce operations, implemented with mongoid.