add DHE and ECDHE support, and TLS versions 1.1 and 1.2

Thanks for Edward Lee for this patch.

The DH params file is identical to apps/dh4096.pem from openssl source.
docs and tests for DHE and ECDHE support; simplify curve name code