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

initial work cribbed from PR #1214 but then I changed direction a little
The time is in UTC - I'll append the Z to the format string so it's clear.