Add support for ECDH and provide a better ssl_cipher set by default.
change some comments
add limits.h so we can compile in 32-bit systems.