changes to messaging and added delayed_job for queueing message emails