organize the task directory based on index
add epoch into etcd
define task master in etcd layout
Merge pull request #54 from fengjingchao/master

add epoch into etcd
refactoring framework