Cache plugin portal responses per Gradle version.

It makes no sense to cache across versions as the protocol is versioned based on the Gradle client.

+review REVIEW-5078
Change the strategy for plugin resolution protocol deprecation to be richer and more robust.

+review REVIEW-5080