Add basic bash completion support.

This completes the basic crab commands and their long options.  Needs
to be sourced in the current bash session to work.  Fixes #4331.
Merge pull request #4332 from matz-e/bash_completion

Add basic bash completion support.