New error/exception page implemented

Initial version. Some details still unfinished.
See #297.