add CookbookResource.download function