Added a Context type for non-global contexts.

Implemented the current globalContext using the new type.