Add a license check to tidy. #4018

r? @graydon

This adds a check that sources files contain the correct license block. It introduces the `xfail-license` comment for source with unresolved licenses and a white list of files under other licenses.

For now it only inspects files that are already checked by tidy, so it doesn't catch everything, including `.S` files and tests.