Implemented 404 page for bibliography items

Now apply this to other parts as well
Implemented 404 for chapter lookup
Fixed TODOs
Removed reference to dvi files
Implemented exception handling
Fixed exception handling everywhere