Add 404 and 500 page and simple error logging.