Prefer SCons environment methods for functions acting on environments.
Prefer SCons environment methods for functions acting on environments.

SCons' AddMethod method allows environment objects to be embellished
with methods that can be overridden in clones of the environment
and easily used outside the current SCons file. This pattern permits SCons
files to be more easily refactored.

Converting most functions with SCons environments as initial arguments
to methods. (Excluded a few that are used once and tightly coupled,
i.e. poor interfaces to override partially.)
Converting all uses of functions published as methods to method invocation
form (foo(env) -> env.foo()).

This is a precursor to subdividing SConstruct for Chrome-NaCl test
refactoring.

BUG=http://code.google.com/p/nativeclient/issues/detail?id=2957
TEST=None
R=ncbray@chromium.org,mseaborn@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10828340

git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@9493 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,nacl-webkit/native_client,nacl-webkit/native_client