Support Extra curl_setopt's for timeout, basic auth etc.

Added handling of multiple curl_setopts via an extra array for each function.