hub: support `--without-completions` flag

Some people might want to opt out of bash/zsh completions (me included,
for development purposes). This matches the option in "git" formula.
hub: point GIT_DIR to the git clone of hub when installing from HEAD

It's useful for the hub build process to have access to the git repo so
that it knows the commit SHA from which it's being built.
fix hub test