Merged error-fixes branch by Roger Peppe.

This handles the os.Error => error transition, and also introduces
new ErrorMatches and PanicMatches checkers that enable handling the
new error type more properly.