Refactor glossaire and setup bash scripts

* Create functions to reuse code.
* Use "hg update -C" (--clean) instead of "hg update -c" (--check). I think it was the original idea too, since --clean let you ignore local
changes
* Use colors in console output to differentiate command output (no color), errors (red) and messages (green)
* Make setup.sh interruptable
* Use $(var) instead of `var`, use 'function' when declaring functions