Add support for the ScriptingContext object

Probably not too useful, but it is a global object so falls within scope.