add XMLHttpRequest support (and cookie passing support)

reference: https://github.com/tmpvar/jsdom/issues/380