Add GETCONFIG_ROOT override to set the location of
config files explicitly.

This is required when using a test-runner, or other
situation where require.main doesn't end up being 
the "main" app file.

Also, tests.
Merge pull request #8 from latentflip/env-override

Add GETCONFIG_ROOT override to set the location of config files explicitly.