Zsh completion

Generate and install zsh completion script (as per #775). The Perl script can probably be adapted for bash and other shells, if someone wants to look into it.