Make fetch_bugs a periodic task instead of a management command.

* Add generic decorator to mail admins on error.
* Fix tests.