Add connection and execution timeouts for curl calls.

Set curl options  `CURLOPT_CONNECTTIMEOUT` and `CURLOPT_TIMEOUT` to 5 seconds instead of whatever the defaults are, which feel looooooong.