renamed configuration.rb to global_config.rb, plus fair amount of refactoring