Move common functions related to checksum, identifier and hook-type parsing to a common include file. Signed-off-by: Tom Herbert <tom@quantonium.net>