src/error-handling.php: Break out new function from 'presentErrorReport' to make it more testable; add more tests over the error-handler; and, use the common "errorAlert" method (from SpareParts\Webapp\UI module) to generate the error-handler's HTML output.