Precompute data for GitInfo

Create JSON cache files of git version information during a full scap.
These files will be read by GitInfo.php once I66e058a is merged to
provide version information for mw-core and extensions.

Bug: 53972
Change-Id: I16cf49edaa11bfaeb82be987df22badc44109966