Add SNI support for checks.

Added support for SNI (Server Name Indication).
fixed sni support to not require lib var, refactored code to be cleaner and added usage and description for SNI