SERVER-13294 mongos --upgrade should exit after upgrading

Fix multiVersion tests
SERVER-13167 allow PFE in each document in insert write command

Previously PFEs could only be thrown during the first operation.
SERVER-13305 fix test for small_oplog
SERVER-13053 track index builds explicitly instead of using CurOp
SERVER-10026 don't forget to propagate restoreState down to backup plan in MPR
SERVER-10026 limit tree depth allowed by the match expression parser
SERVER-13202 wait for secondary to flush buffer before assuming primaryship
SERVER-13292 fast path simple/fully covered projections
SERVER-13053 fix curop query field for index builds outside of createIndexes command