Fix to use modified mapFindWithDefault
fix whitespace/indent and turn on

Conflicts:
	buildscripts/lint.py
	src/mongo/db/repl/bgsync.cpp
	src/mongo/dbtests/btreetests.cpp
SERVER-6802 allow bulk insert options from the shell
SERVER-6802 fix v8 to accept insert flags
SERVER-7537 V8: prevent heap/stack corruption with off-by-one error; avoid memory leaks on Windows
SERVER-7134 Shuffle spidermonkey engine code around.

Conflicts:
	src/mongo/scripting/engine_spidermonkey.cpp
SERVER-7565 SERVER-7126 SERVER-7576 Visual Studio require Python, run Python scripts

This commit makes the Visual Studio builds require Python to be installed.

Add Pre-Build Events to Visual Studio projects to run the same Python
scripts that the scons build runs to create src/mongo/base/error_codes.cpp,
src/mongo/base/error_codes.h, src/mongo/db/auth/action_type.h and
src/mongo/db/auth/action_type.cpp.

Conflicts:
	.gitignore
	src/mongo/db/mongod.vcxproj
	src/mongo/db/mongod_v8.vcxproj.filters
	src/mongo/dbtests/test.vcxproj
	src/mongo/dbtests/test.vcxproj.filters
	src/mongo/s/mongos.vcxproj
	src/mongo/s/mongos.vcxproj.filters
	src/mongo/shell/mongo.vcxproj
	src/mongo/shell/mongo.vcxproj.filters
SERVER-7134 Let MongoDB modules add commands to the Mongo object in the SpiderMonkey shell.
SERVER-7086 Add Visual Studio projects for V8

Added mongo_v8 and mongod_v8 projects for building the shell and
mongod with V8 instead of SpiderMonkey.

Conflicts:
	src/mongo/db/mongod_v8.vcxproj
	src/mongo/shell/mongo_v8.vcxproj
	src/mongo/shell/mongo_v8.vcxproj.filters
Rearrange v8_db.{h,cpp} includes.
SERVER-7134 Let MongoDB modules extend the prototype of the Mongo object in the V8 shell.
add fassert numbers
SERVER-7134 Revert path change in include
SERVER-7577 Do not try to use filename if not set
SERVER-7600 Fixup V8 includes, adapt Visual Studio projects

Use <v8.h> as include path for includes of "third_party/v8/include/v8.h",
adapt Visual Studio project files to include the required path, move
includes in mongo/scripting/v8* into style guide order, build Visual Studio
output files for V8 in separate directories so that SpiderMonkey and V8
builds can be run at the same time and to prevent link errors, tell
.gitignore to ignore these new directories.

Conflicts:
	src/mongo/db/mongod_v8.vcxproj
	src/mongo/shell/mongo_v8.vcxproj
SERVER-7617 Enter and Exit our scope's Isolate in V8

Added Scope::enter() and exit() member functions, only doing something
in V8 builds, to enter and exit the Isolate of the Scope we are using.
Call these functions when fetching a Scope from the pool/ScopeCache and
when returning one to the pool or deleting one.  The Isolate is the actual
"state" container for V8, so many things don't work properly if this isn't
set up.  There may be other situations where we need this, but this fixes
(at least) this particular case.
Revert "SERVER-7617 Enter and Exit our scope's Isolate in V8"

This reverts commit a2e429d299dbb5bd58dc3ecca8918b89ac17ae59.
SERVER-7705 Test return value from Run() call on assignment

In newFunction() in mongo/scripting/engine_v8.cpp, do not return the
return value from running the compiled assignment statement if it is
empty; return JavaScript 'null' instead.
SERVER-7685: refactor v8ToMongoElement to reduce stack consumption in recursive path

Conflicts:
	src/mongo/scripting/engine_v8.cpp
SERVER-7685: fix build: cast was incorrect