Pull all the logic out of the 500.html template to ensure we see error m...

...essages. Courseaffils was gobbling up the errors.