Use xhr wherever possible instead of xdomainrequest

Fixes #97