Replaced uses of DnsEndPoint with EndPoint.
refactoring connection pool classes and introduced a new ConnectionPool.