Adds maximum curl timout on curl_with_retries.

Signed-off-by: Wayne <wayne@puppetlabs.com>