Remove excess crud from api script.
Update the configuration loading.