add REST_AGENT_DEBUG env var feature; TIMEOUT_MS not supported on older ...

debugging env var