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
remove unused code in Utils class + simplify code
Refacor Json class:
* don't repeat Json in class methods so Json::outputJson() and Json::fetchJson become Json::output() and Json::fetch()
* slight code clean up
* add missing tests for output()
* add a $pretty_print variable to output() for debugging
Create a cache system (sqlite+.gz files) for HTML views
Merge branch 'cached_views' of https://github.com/flodolo/transvision into cached_views