Fix fatal error handling.

Fatal error handling used to reference configure values that no longer
existed.

Move the fatal error handling in the error handling classes as it makes
more sense there. Doing this also allows far more code re-use than
before.
Merge pull request #1619 from markstory/3.0-fatal-error

3.0 - Fix fatal error pages