Set a connection timeout

I've found that a CURL connection can hang indefinitely without a timeout set.

The curl library doesn't have a default timeout and instead relies on socket timeouts built into the operating system.  Curl doesn't use the "default_socket_timeout" php ini either.