Add SNI support

Fixes #262