ima: add support for measuring and appraising firmware