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.