Allow following CNAME. This is useful for servers with SNI enabled
Prepare for SNI support (2.x does not support this yet)
Merge pull request #4 from schwabe/cnamesni

Add support for cname and SNI