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
slight refactoring of Utils::getRepoStrings()
fix tab vs spaces indentation in a file
Refactor and largely simplify getRepoStrings() + add tests
Issue #160: generate real php arrays during string extraction
Merge pull request #161 from mozfr/Issue160-refactor-php-array-extraction

Issue #160: generate real php arrays during string extraction
Merge pull request #155 from flodolo/cleanup_bash

Refactor glossaire and setup bash scripts