minor cleanup of offline-install views

- nicer ZipFile syntax that I also changed elsewhere
- share code with download_index rather than copy-paste
- clean up url patterns syntax