Merge pull request #94 from huafengw/master

add restart application
add AppMaster fault tolerance