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.
@squirrelo are you sure? The only thing that I'm seeing is that you have an if statement on line 28...