Make cURL's timeout and connect timeout configurable

The less ideal but backwards-compatible and easier way.