test/testutil.c test registry functions.

These help standardize the structure of main() and result reporting.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Use testutil registry in heartbeat_test

Reviewed-by: Tim Hudson <tjh@openssl.org>
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.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Check the test registry size during add_test()

Reviewed-by: Tim Hudson <tjh@openssl.org>