Adding state=5 for notified
Fixing problem in mailer for async calls to email
Adding curly braces
Logging only in case of error
Adding mkdirp as dev depency
Simpler data for testing
Adding util methods to set request to completed
Better error checking for scheduler tests
Adding tests for mailer component
Two main methods take callbacks, setting up timeout mechanisms for restarting main script