Some general cleanup
work on the client handshake. added the crypto structures that will need to be filled at the end of the handshake.