add support for passing through unhandled requests to native XHR

Also adds a package.json to make it easier to run karma and contribute
to the project.