Add support for 404 and 500 error handlers.
Fix conflicts with assets.