add alert support
Merge pull request #8 from visionmedia/master

add on-error and on-restart config support