Enable the overriding of `assert_hostname` on TLSConfig

This sits on top of #334, which should probably be merged first.