implement "pip self-check" with automatic invocation by default

initial work cribbed from PR #1214 but then I changed direction a little
It's overridden in the self_check command so that self_check doesn't auto self-check.