cf-dc-api.pl: add CF_AGENT_OVERRIDE, CF_PROMISES_OVERRIDE, CF_VERSION_OVERRIDE for testing and use them