Client handshake nearly complete. TODO: fix message digest, public key encryption, and MAC padding.
Merge origin/master