make sync all posts from earliest to lastest
change before date task to after date task
refactor code
Merge pull request #4 from zhaozhiming/master

add some function and refactor code