Make the environment info a global field directly.

Also, set its field `exportsNamespace` after the fact with
what we chose to use.

Finally, we also freeze the environment info object when we're
done with initializing Scala.js, to prevent anyone from modifying
it after that.