Improved aws registry lookup

Using URI to parse uris
Using Resolv with Hosts and DNS to resolve aws registry address