Clear distances passed into _getRawObjects

Add comment suggested by Naomi
Use $near distances as lowest-priority sort key

Previously, $near was only used in the absence of a sort specifier; now,
it's also used as a tie-breaker when there is a sort specifier. (Tested:
this matches MongoDB.)
NOTES update.
Refactor selector-vs-modifier/projection code

Now they are methods on a compiled Matcher rather than doing their own
operator parsing from scratch. This means less work is happening for
each oplog entry, and it also localizes knowledge about selector
parsing.
Throw on missing distance
set arrayIndex in most places

(not $near or $elemMatch yet)
rename args in andSomeMatchers
remove random type tag in test
JSON -> EJSON in test
Refactor: optionify LocalCollection._modify arg
Cleanup/modernization of modify.js
clean up findModTarget

convert arguments to options
Implement 'a.$.b' modifier

Does not yet work with $near or $elemMatch
Implement '$' update for $near
Implement '$' update for $elemMatch
Merge branch 'minimongo-array-updates' into devel

Actually implement updating field 'x.$.y'! Also some related cleanups.
Upgrade websocket-driver to 0.3.2

This lowers the max websocket frame length from 1GB to 64MB.

Note that due to #1648, this may not immediately affect existing
checkouts of meteor (but will get into all release builds).
Add missing 'random' dependency to retry
Merge remote-tracking branch 'origin/devel' into sso