Add bash and zsh completion functions contributed by @pigmonkey in h2s/ppl#22

The main task here is really in the documentation of this, but I'm eager to at
least get them into the codebase for now.