1. init the replicator 2. retry when fail to register worker and appmaster 3. refine the log
Merge pull request #26 from clockfly/master

1. init the replicator 2. retry when fail to register worker and appmast...
add some TODO comments
Merge pull request #33 from clockfly/master

add some TODO comments