`bb_tasks` app fixes

* Fixed circular imports in the app.
* Signal handlers for mailing refactored and fixed for the new app setup.
* Fixed factory models for unit testing.
* Fixed unit tests for mailing machinery.