SERVER-9516 Logic of system.users schema upgrade process.

Includes AuthorizationManagerExternalState interface changes and implementation
in the mock, plus unit tests.

Conflicts:
	src/mongo/db/namespace_string.h
SERVER-11295 Encode 'anyAction' in a future-proof way