Add `utils/config.py`

Use Agg backend when generating images to STDOUT.
Run `main` only if `__name__ == "__main__"`
Update `server.js`