Handle all 404s with the application

Close #1336
Use asset specs for all template references

This makes it possible to override them using Pyramid's
`config.override_asset` API.