Fix Facebook base-api-uri
Really fix detection of host-part in uri for non standard ports
Adds test for uri with non-standard-port
Merge branch 'fix-host-parsing'