Generate cache key based on req.originalUrl instead of req.url.

For issue #18

I've also added test coverage for the change. Let me know if you have any concerns or questions about the way I implemented those. I tried to match the style and spirit of the existing tests :)