Clean /usr/local Git repository before calling brew doctor

When formulas are deleted by the bin/brew update operation, files remain
untracked in the main Git repository causing brew doctor to return a non-zero
error code. This commit fixes this by calling git clean -df post brew update.
Note this will potentially wipe out files not related to Homebrew and should
only be used in a testing environment.
Prune dead symlinks
Define a testing mode to wrap Homebrew uninstallation and cleanup

This commit should allow people to keep on using this installation script. A
TESTING_MODE flag is defined conditionally to the presence of a JOB_NAME
variable by default (but can be overriden). The Homebrew/pip uninstallation
and cleanup operations as well as the PR merging step are only executed if
this flag is on.
Drop JOB_WS environment variable

Since 4.4.7, the python dependencies script is installed as part of the omero
formula. Dropping JOB_WS allows to use the OMERO-homebrew-install.sh script
without cloning the main repository.
Check delete rsp.constraints only if ERR. See #10889
'multi-image' and 'fileset' lowercase in UI
Delete MIF message more similar to chgrp MIF message
Fix 'invalid value' error on failed MIF delete. See #10900
MIF delete message: 'You tried to delete 1 image...'
Remove BREW_DIR variable: use /usr/local for Homebrew installation
Merge pull request #1190 from will-moore/delete_chgrp_MIF_bugs_May20th

Delete chgrp mif bugs may20th
Merge pull request #1180 from sbesson/rebased/develop/homebrew-clean-install

Clean /usr/local Git repository before calling brew doctor (rebased onto develop)