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

initial work cribbed from PR #1214 but then I changed direction a little
The only down-side to this is that sys.prefix in a virtualenv is a little unsightly (ends in "bin/..") but I take your point and will make the change.