test/testutil.c test registry functions.

These help standardize the structure of main() and result reporting.
Use testutil registry in heartbeat_test
Update heartbeat_test #includes

ssl/ssl_locl.h now comes first to ensure that it will compile standalone.
test/testutil.h is considered to be in the same directory as the test file,
since the test file will be linked into test/ and built there.