Return a 404 instead of the stacktrac when a cast error occurs.
Create function for sending a 404.
Fix error throwing for not founds by stopping execution.
Greatly extend populatePaths function. Can now filter and returns path options.