deduplicate Heartbleed code
deduplicate Heartbleed code

since the test() in Hearbleed is essentially the same as in Heartbeat,
we can reuse it by just modifying the heartbeat message creation
code

WestpointLtd/tls_prober,WestpointLtd/tls_prober