Remove an unnecessary string copy in the Text constructor.
Rename variables that refer to global objects.

This clarifies whether those variables will point to a Window object or an
arbitrary global object.

Note in particular that all IDL Constructors will accept an arbitrary global
object.
Simplify the implementation of cx_for_dom_reflector.
Put some 'use' statements in alphabetical order.
Make some DOM fields private.

Relevant to #2242.
Remove some Cells for immutable members.
Introduce abstractions for global scopes.

Part of #2811.