first steps towards a native XHR implementation... still need to fix the binary bodies and bug #2