more EC curves

This moves elliptic curve definition from the crypto NIF/OpenSSL into Erlang code, adds the RFC-5639 brainpool curves and makes TLS use them (RFC-7027).

Unit tests for curves where official test vectors exist where added to check that the resulting curve definitions are valid.