Ping Elasticsearch immediately on startup and fail fast if unavailable; CORS settings moved out to config.js; default clientConfig explicit