Implement max/min support

Add support for max and min:
http://docs.mongodb.org/manual/reference/operator/meta/max/#op._S_max
http://docs.mongodb.org/manual/reference/operator/meta/min/#op._S_min

Fixes #497