Add pointer to AuthorizationManager to AuthzSessionExternalState
Revert "Add pointer to AuthorizationManager to AuthzSessionExternalState"

This reverts commit 661a68e0bd5d9679afa6a1fc9f371bb17a15129e.
Add pointer to AuthorizationManager to AuthzSessionExternalState
Set up globalAuthorizationManager for the unit tests that need it

Conflicts:
	src/mongo/dbtests/dbtests.cpp
Coerce return value of boost::size

The return value type of boost::size for arrays changes signedness between boost-1.49 and boost
1.5x. It is also impossible to synthesize the return type. Since we should compile against both
versions, coercing the return value to int is the simplest solution.
SERVER-9518 Use AuthorizationManager to get privilege documents from disk

Conflicts:
	src/mongo/db/auth/authz_session_external_state.cpp
	src/mongo/db/auth/authz_session_external_state.h
	src/mongo/db/auth/authz_session_external_state_d.cpp
	src/mongo/db/auth/authz_session_external_state_d.h
	src/mongo/db/auth/authz_session_external_state_s.cpp
	src/mongo/db/auth/authz_session_external_state_s.h
Move static methods from AuthorizationSession into AuthorizationManager - INCOMPLETE need to remove from AuthSession

Conflicts:
	src/mongo/db/commands/apply_ops.cpp
	src/mongo/db/dbeval.cpp
	src/mongo/db/dbwebserver.cpp
	src/mongo/s/commands_public.cpp
SERVER-9518 remove shit from auth session

Conflicts:
	src/mongo/db/auth/authorization_session.cpp
	src/mongo/db/pdfile.cpp
Revert "SERVER-9518 remove shit from auth session"

This reverts commit f5e81a3f0155c73bee1732c935b20f774bcab2cc.

Conflicts:
	src/mongo/db/pdfile.cpp
Revert "Move static methods from AuthorizationSession into AuthorizationManager - INCOMPLETE need to remove from AuthSession"

This reverts commit 2ccf39cab1d62c4b2a68513e9f906074d156a531.

Conflicts:
	src/mongo/db/commands/apply_ops.cpp
	src/mongo/db/dbwebserver.cpp
	src/mongo/s/commands_public.cpp
SERVER-9518 Move static methods from AuthorizationSession into AuthorizationManager

Conflicts:
	src/mongo/db/commands/apply_ops.cpp
	src/mongo/db/dbwebserver.cpp
	src/mongo/db/pdfile.cpp
	src/mongo/s/commands_public.cpp
SERVER-9518 Make all methods on AuthorizationManager non-static

Conflicts:
	src/mongo/db/db.cpp
	src/mongo/db/range_deleter_db_env.cpp
	src/mongo/db/repl/connections.h
	src/mongo/s/d_migrate.cpp
	src/mongo/s/server.cpp
	src/mongo/s/shard.cpp
Revert "SERVER-9518 Make all methods on AuthorizationManager non-static"

This reverts commit 7d37be060bd7db332ebeade1e1c0cf53d8b00cb3.

Conflicts:
	src/mongo/db/db.cpp
	src/mongo/db/range_deleter_db_env.cpp
	src/mongo/s/shard.cpp
SERVER-6246 Add createUser command

Conflicts:
	src/mongo/SConscript
	src/mongo/base/error_codes.err
SERVER-7455 SERVER-7961 x.509 authentication and keyfile replacement

Basic support for x.509 authentication of clients and for internal
x.509 authentication of cluster members.

Conflicts:
	src/mongo/SConscript
	src/mongo/db/range_deleter_db_env.cpp
	src/mongo/util/net/message_server_port.cpp
	src/mongo/util/net/sock.cpp
	src/mongo/util/net/ssl_manager.cpp
	src/mongo/util/net/ssl_manager.h
SERVER-6246 Add updateUser command and shell helper
SERVER-6246 Make sure we release the write lock before calling GLE in user management commands
SERVER-6246 Check for existence of "code" field before accessing it when creating a user doc
SERVER-9983 Do not needlessly lock when looking up privileges for the __system@local user.

Uncorrected, this can cause replica set heartbeats to stall behind operations
that hold the read lock for a long time.
Move hash function for UserNames to separate header file to improve compilation times

Conflicts:
	src/mongo/db/auth/user_name.h