pass url resolution through to node.js url.resolve

The existing url resolution code produces URLs with backslashes on windows. Rather than fixing up the helpers, exporting a resolve function and passing through to node.js's url.resolve in that environment seemed a reasonable approach.