Allow periods in url

Changes the logic to detect whether we're serving an asset so you can still have periods in your application routes.
JSHint is erroring because you are defining `res` here, but are not using it.