Handle TPM errors, and stop trying to use the TPM once we hit one.
Add support for performing basic TPM measurements. Right now this only supports extending PCRs statically and only on UEFI and BIOS systems, but will measure all modules as they're loaded.