Add option 'globals' to have a set of global json files

Thanks, I gave up on the rebase, it worked fine locally but no idea why i couldn't get rid of the duplicate commits in the pull request. But here we go after all - i re-forked