Flush goal stats caches when stores change

The cache for the goal stats is flushed when:

* A file is uploaded
* Translations are sent
* An update against templates is performed
* An update to VCS is performed

Fixes bug 3130