Set rport only if port info is available.
Fix resolving URLs from different domain.
Fix unit test for checking rport parameter.
Remove global variables from require library.
Exporting require.cache.
Issue #3 - add stringifiers for header values.