Add sha1.c and libsha1.h for doing SHA-1-based message-ID generation.