Requests for comment/Replacing extension distributor

ExtensionDistributor is in need of some major rework.

Problem

 * 1) The code is overly complex (shelling out to   is error-prone[citation needed])
 * 2) The current system requires NFS on the apaches for clones of git repositories and storing/caching the tar packages.
 * 3) The current system was built for our SVN-based branching model, and doesn't suit users well
 * 4) Ownership and permissions mismatches have meant that the extension is often broken in practice for our users.

Proposal #1: Gitweb with core branch timestamps for guesstimates of extension branches

 * Rewrite the code to fetch tars/zips from a url pattern (configurable: Gitweb, Gitblit, Github ..). This already handles the "package and tar" logic for us.
 * Put something in front of Gitweb/Gitblit to lessen the load since (at least Gitweb) does not cache (e.g Varnish). We don't actually need to store the archives, long-term caching will suffice.
 * For third party users (if requested): Add on-disk cache as a feature.
 * Versions: master and MediaWiki core branch names (extension snapshots of their master branch at the time of the MediaWiki core branch point timestamp). This was more or less what we accomplished in SVN.

Proposal #2: Gitweb with git branch points

 * Rewrite the code to fetch tars/zips from a url pattern.
 * Put something in front of Gitweb/Gitblit to lessen the load
 * Versions: the git branches that exist for the selected extension.
 * Periodically we can run a script (opt-out base) that automatically creates REL* branches in extensions from the master history at the MediaWiki core branch point timestamps.