I tweaked some stuff

Added optional pathToStrip to change the url that hits the remote server.

Changed options to use req.url since it includes query string parameters.

Love,
Tim