Fix #126 - Keep port numbers in custom API URLs.  Uses URL() to check if...

... scheme needs to be added, and passes the encoded authority when building the URI.