Change curlOptions to match server configuration

New clear_cache function to remove downloaded datasets and EM