Allow for custom error reporting

Allow custom error reporting to be set for testing and other uses

An example would be setting this in `config/site.php`

`define('CUSTOM_ERROR_REPORTING', E_ALL & ~E_NOTICE & ~E_DEPRECATED);`