def setup_config(command, config_filename, config_section, sys_config):
    """
        Set up the application, using ``command`` (to ensure simulate,
        etc).  The application is described by the configuration file
        ``config_filename``.  ``sys_config`` is the system
        configuration (though probably the values from it should have
        already been encorporated into the configuration file).
        """
