Moved automatic emailing for orders being up to a route instead of a rake task, and added test