Fix glossaire (missing folders) and setup (stats files)

**glossaire.sh**
If a folder is missing, all next locales won’t be updated because we’re
in the wrong folder

**setup.sh**
Needs an absolute path for the .json files. Also switch to array
instead of having two identical pieces of code
Merge pull request #351 from flodolo/glossaire_missingfolders

Fix glossaire (missing folders) and setup (stats files)
Issues 305: don't overescape strings at extraction time

* We now only escape single quotes at extractions and leave other special characters alone (&\<>")
* We escape special characters at display time
* Utils::cleanSearch() renamed to Utils::cleanString() and no longer sanitize strings for security (use Utils::secureText())
* Searches for special characters such as &brandshortname; or \ now work, same for API
* Google and Bing links no longer include html entities
Merge pull request #350 from pascalchevrel/issue-305-better_ampersand_escaping

Issues 305: don't overescape strings at extraction time
Issue #352: additional installation checks
* Check that PHP is installed
* Use curl to download data snapshot if wget is not installed
* minor style cleanups
* exit 1 codes + use echored if errors
Merge pull request #353 from pascalchevrel/issue-352-additional_checks_in_dev-setup_script

Issue #352: additional installation checks