SERVER-9986 refactor near search for 2D and S2

Adds progressive search functionality for $geoNear operations,
allowing better integration with other cursors.
Merge remote-tracking branch 'upstream/master'