Refactor rake tasks, put emailing tasks under email namespace