Added getData() function, uses cURL, when available, otherwise file_get_contents