Catch up with __thread changes and add EC to crypto

This works around the OpenBSD thread local storage magic by letting go
use bitrig's tls.

Also in this update is all the ECDHE elliptic curve stuff that
jsing@openbsd has been working on.  It is looking that this will go into
tip soon.