Implement a pip self-check with to determine when it's out of date.

Initial work cribbed from PR 1214.