Fix zip download

Correctly extracts files downloaded in a zip. Also includes test for upload and download of zip.