Make error page nice

This stops the error page from being a blank white screen, and also logs qiita_pet errors to our qiita logger for later handling.
I suppose, but the current three tiers are what we agreed on when writing the logger function.