Handle all 404s with the application

Close #1336