Changes on cURL transport to get Joomla! login from CLI

Adding new options to cURL to manage cookies using CLI. The options added are:

CURLOPT_RETURNTRANSFER
CURLOPT_SSL_VERIFYPEER
CURLOPT_COOKIEJAR
CURLOPT_COOKIEFILE

Also enable CURLOPT_POST if $data are available