hostname should be tested against host, + port strict equality
should handle xdomain, if we are in the browser
Merge pull request #151 from brozie/master

Use xhr wherever possible instead of xdomainrequest