brew_setup: check if Homebrew is installed and install it if not.
brew_setup: only try to install packages if necessary.
brew_setup: hg is an alias for mercurial.