Implement explicit scoping.

See thread "Proposal: Explicit scoping" on ninja-build (https://groups.google.com/forum/#!topic/ninja-build/QsJIJU_5blI), which has fairly positive feedback as far as these threads go. If you don't like this, probably comment on the thread instead.