Prevent STARTTLS connection error BAD_IDENTITY: Closes bgo#726943

Certificate verification was failing because the wrong Connectable
was being passed to the TLS connection code.  This patch also cleans
up Geary.Endpoint by using a NetworkAddress object to hold the
hostname and port.