Move zip downloading into IDP library