Add ability to explicitly set the config.

This change allows the setting of an explicit config if one wants to wrap the main with their own main and provide the config by some means other than a filename.

This refactor also renames load_config to load_config_from_file to be more explicit.