add initial support for
Merge pull request #11 from share/aggregate

add initial support for $aggregate