Added cleaning cUrl setting for set_xml_mode

1. Now we use the same cUrl instance for all requests. If somebody switch sending type from xml to url when some xml requests have been sent (earlier) cUrl will send wrong headers and POST data.
2. Global cUrl initialization options were moved to constructor. There is no any necessity to set them for each request.