Changed the notifications generator to be a module.  Still left the controller action invoking the rake task (which now uses the module though), since the other method locks the web server while the task runs.