Fix SSLv3 handling of SHA-384 suites

Fixes memory corruption, introduced in
a5bdfcd (Relax some SHA2 ciphersuite's version requirements)
compat.sh cleanups
Start using constants from ROM for EC groups
Remove last non-static parts of known EC groups
Adapt ecp_group_free() to static constants
Rm a few unneeded variables
Add previously forgotten #ifdef's
Rename macros
Avoid wasting memory with some curves
Allow to test 32-bit ints more easily
Fix bug from stupid typo
Add ECDH_RSA and ECDH_ECDSA ciphersuites

(not implemented yet)
Fix bug in ciphersuite number

The ID of TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256 was wrong
Add ecdh_get_params() to import from an EC key
Add client-side support for ECDH key exchanges
Add server support for ECDH key exchanges
Fix EC suites version requirements in compat.sh
Add ECDH_ECDSA suites to compat.sh
Fix ciphersuite selection in compat.sh
Factor our some code in net.c