Utility methods for extracting elements from BSON objects, that return Status.

Code that works with BSON that return Status objects intead of throwing exceptions generate
a lot of boilerplate when using the regular BSON accessor operations.  These functions
consolidate that boilerplate in one place, bson_extract.h/cpp.  It also provides a convenient
location for dropping other generic field extraction methods that return Statuses.
Make Capability just store resource and actions, and add AcquiredCapability that also holds principle
Make AcquiredCapability return its internal capability directly
cp
only one constructor for AcquiredCapability
Fix logic error in bsonExtractBooleanFieldWithDefault.
SERVER-7498 Check config is not null before dereferencing
Fix bson_extract_test -- BSONElement reference outlived containing BSONObj.
fix solaris build
add a line of rs.help() text
Merge branch 'master' of github.com:mongodb/mongo

Conflicts:
	src/mongo/bson/bsondemo/bsondemo.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.
Move copyright to top of file (for cpplint)
SERVER-7134 Let MongoDB modules add commands to the Mongo object in the SpiderMonkey shell.
SERVER-7570 Initialize ProcessInfo::SystemInfo at startup, add pageSize.

Signed-off-by: Andy Schwerin <schwerin@10gen.com>
compilation fixes for gcc 4.7
SERVER-7206 change global variable in profiler to be heap-based
fix compile on freebsd
SERVER-4237 SERVER-6972 Skip gle_with_conf_servers when running tests with auth
Log error object when replSetGetStatus fails in the ReplicaSetMonitor