[Config] Add support for accessing the config singleton in different lexical scopes

@jpsim this will allow making `pod spec document` and `pod lib document` to be much much easier.