fix npe on problem report
meger the code
modify the code
add the event count function
Merge pull request #635 from jialinsun/master

delete unused code
refactor code
remove unused file
Merge pull request #636 from youyong205/master

refactor cat consumer
Merge branch 'master' of https://github.com/dianping/cat