Added helper functions create_query_url and create_curl_handle to aid integration with 3rd party disk caching