clean up files, don’t use curl for api proxying, use httparty so we can stub the request