Read in the Salt Master config file and add additional configs that
    need to be stubbed out for salt-api

def api_config(path):
    '''
    Read in the Salt Master config file and add additional configs that
    need to be stubbed out for salt-api
    '''
    # Let's grab a copy of salt-api's required defaults
    opts = DEFAULT_API_OPTS.copy()

    # Let's override them with salt's master opts
    opts.update(client_config(path, defaults=DEFAULT_MASTER_OPTS.copy()))

    # Let's set the pidfile and log_file values in opts to api settings
    opts.update({
        'pidfile': opts.get('api_pidfile', DEFAULT_API_OPTS['api_pidfile']),
        'log_file': opts.get('api_logfile', DEFAULT_API_OPTS['api_logfile']),
    })

    prepend_root_dir(opts, [
        'api_pidfile',
        'api_logfile',
        'log_file',
        'pidfile'
    ])
    return opts