Merge pull request #100 from fengjingchao/master

framework: each epoch has its own life cycle
initial prototype of event loop