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.
Some research shows we need to update to at least Tornado 3.2 to fix this problem: http://tornado.readthedocs.org/en/latest/web.html  It's probably worth the upgrade any way as there are a lot of good new things in there.