Feature/min max

As discussed in issue http://jira.mongodb.org/browse/SERVER-1534

This adds the $min and $max operators to update operations. Also includes C++ and js tests.

I am only very rudimentary at C++, so please forgive any major errors. Let me know what needs cleaned up, I'm happy to take care of it.