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.
Good reminder that it's best to define constants for literal values. Have made another commit to do this.