Add zip Download for Systems withoud tar-command

Fixed Download on Windows and make downloads possible for Servers
without system() access

It's the code for:
https://github.com/Codiad/Codiad/issues/193

Also some security-checks added.