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 make room for a load_config_from_string in the near future.