Add a method for extracting all the handshake messages from a record
easily. Made sendcert.py make use of the new api.