Add support for arbitrary TLS extensions.

Contributed by Trevor Perrin.