First draft of some basic bash completion.

This needs to be installed by OS packaging.
Merge pull request #822 from waywardmonkeys/bash-completion

First draft of some basic bash completion.