Updated email templates to access data as an array rather than an object.
Changed email sending to use a queue
This fixes #4