Allowed curves for ECDHE handshakes.

Adds the possibility to define the allowed curves for ECDHE handshake. The list also defines the preference of the curves.