SERVER-6779 Correctly serialize ExpressionCoerceToBool

Conflicts:

	src/mongo/db/pipeline/expression.cpp
	src/mongo/dbtests/expressiontests.cpp
SERVER-6766 Properly serialize DocumentSourceGroup for transmission to shards.

Conflicts:

	src/mongo/db/pipeline/accumulator.cpp
	src/mongo/db/pipeline/accumulator.h
SERVER-6795 Correctly optimize reverse sense ExpressionCompare to ExpressionFieldRange.
SERVER-6795 Correctly optimize reverse sense ExpressionCompare to ExpressionFieldRange.
SERVER-6766 Properly serialize DocumentSourceGroup for transmission to shards.

Conflicts:

	src/mongo/db/pipeline/accumulator.cpp
	src/mongo/db/pipeline/accumulator.h
Minor ExpressionObject cleaning.
Minor FieldRange cleaning.  Verify on attempt to construct a FieldRange from Expression::NE, which is unused and unsupported.
Minor cleaning and unit tests for ExpressionAnd and ExpressionOr.

Conflicts:

	src/mongo/dbtests/expressiontests.cpp
SERVER-6908 Don't pass strings by value

Change lots of code to take <string> arguments by const ref instead
of by value; minor changes to surrounding code.

Conflicts:

	src/mongo/client/syncclusterconnection.cpp
	src/mongo/db/client.cpp
	src/mongo/db/client.h
	src/mongo/db/dur.cpp
	src/mongo/db/dur.h
	src/mongo/db/durop.cpp
	src/mongo/db/durop.h
	src/mongo/db/extsort.cpp
	src/mongo/db/extsort.h
	src/mongo/db/geo/core.h
	src/mongo/db/index_update.cpp
	src/mongo/db/index_update.h
	src/mongo/db/memconcept.cpp
	src/mongo/db/mongommf.cpp
	src/mongo/db/mongommf.h
	src/mongo/db/pdfile.cpp
	src/mongo/db/pdfile.h
	src/mongo/db/repl.cpp
	src/mongo/db/repl.h
	src/mongo/db/repl/health.h
	src/mongo/db/repl/heartbeat.cpp
	src/mongo/db/repl/rs_initialsync.cpp
	src/mongo/platform/strtoll.h
	src/mongo/s/d_migrate.cpp
	src/mongo/util/logfile.cpp
	src/mongo/util/logfile.h
	src/mongo/util/mmap.cpp
	src/mongo/util/mmap.h
	src/mongo/util/mmap_win.cpp
SERVER-SERVER-6861 Validate that pipeline stage specification objects consist of a single field.  Clean up pipeline stage parsing.
Fixed typos

Signed-off-by: Tad Marshall <tad@10gen.com>

Conflicts:

	src/mongo/db/btree.h
	src/mongo/db/diskloc.h
	src/mongo/db/dur_preplogbuffer.cpp
	src/mongo/db/dur_recover.cpp
	src/mongo/db/json.cpp
	src/mongo/db/namespace_details.h
	src/mongo/db/record.cpp
	src/mongo/db/repl.cpp
	src/mongo/db/repl/rs_rollback.cpp
	src/mongo/db/repl/rs_sync.h
	src/mongo/dbtests/jsobjtests.cpp
	src/mongo/dbtests/perf/btreeperf.cpp
	src/mongo/dbtests/queryoptimizercursortests.cpp
	src/mongo/s/d_migrate.cpp
	src/mongo/s/d_writeback.h
	src/mongo/util/file_allocator.h
hookup google cpplint, and make "scons lint" run the checks we pass on now
including a few that i made pass

Conflicts:

	src/mongo/db/oplog.cpp
	src/mongo/db/repl/rs_initialsync.cpp
	src/mongo/util/hashtab.h
SERVER-7118 Change "mongo modules" to use SConscript files for modules.

Also allows you to have modules in mongos and the shell, as well as mongod.
Requires changes to the modules, to have SConscript files, and define libraries.
Allows modules to have unit tests, interesting linking rules, dependencies into
mongo, etc.

Still may need to do some work on includes.  The mongo-enterprise module has very
simple include requirements, today.

Conflicts:
	SConscript.buildinfo
	SConstruct
	src/mongo/SConscript
SERVER-7086 Add V8 3.12.19.11 to src/third_party/v8

Using the following:

$ git clone -b 3.12 git://github.com/v8/v8
$ rm -rf \
  benchmarks/ \
  build/ \
  DEPS \
  Makefile \
  Makefile.android \
  preparser/ \
  samples/ \
  src/arm/ \
  src/mips/ \
  test/

(Above to reduce directory size from 46M to 13M)
SERVER-7086 Merge V8 scons files into new SConscript

Removed all but the following:
- LIBRARY_FLAGS from SConstruct
- V8_EXTRA_FLAGS from SConstruct
- SOURCES from src/SConscript
SERVER-7086 Pare down V8 compiler flags
SERVER-7086 Add V8 JS2C-generated .cc files

These are platform-independent, and were taken from a V8 build of
the same version.
SERVER-7086 Complete implementation of V8 SConscript

Supports [MacOS, Linux, Windows, Solaris, FreeBSD]
         * [32-bit, 64-bit]
         * [debug, release]
SERVER-7086 Add README for src/third_party/v8 directory
SERVER-7086 Integrate third_party V8 build into SConstruct

Conflicts:
	src/third_party/SConscript