Routing and Network Design in Delay Tolerant Networks