move xhook addCredentials into xdomain constructor, otherwise when using with AMD xhook is undefined
move xhook addCredentials into xdomain constructor, otherwise when using with AMD xhook is undefined
Merge branch 'fix_withcredentials' of https://github.com/matt-gadd/xdomain into fix_withcredentials