Removed unecessary thread spawning in several tasks including the email dispatching system. Closes #311