Load affiliates and url from settings.json, updated TODO