curl options in HttpCommandExecutor::remoteExecute()

change the interface from ($cmd, $timeout) to ($cmd, $curl_opts)
so that we can handle all curl opts nicer.

To set the original timeout, passing

array(CURLOPT_CONNECTTIMEOUT_MS => $timeout)

as the $curl_opts.