Fix 'make distcheck'.

Replace the silly test shell scripts with C programs, change the tlsdated
unittest to use the binaries instead, and have the Makefile install them as
needed.

Signed-off-by: Elly Fong-Jones <ellyjones@chromium.org>