New error/exception page implemented

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