Allow a custom global scope

Use case: I'm using completion on js code that will be executed in an iframe, which has a different global scope than the context in which codemirror is loaded.
This allows you to pass in an object as a global via the `globalScope` option.