Add 'config-declared global' test
Implement config.globals
Merge pull request #336 from phadej/globals

fixes #337: Add support to adding globals to the config