SERVER-4929 aggregation: $group should have a $median accumulator

Support for $median accumulator