Merge pull request #50 from youyong205/biz

bug fix and code cleanup, make thread much robost
Merge pull request #52 from youyong205/biz

- fix cat alarm problem, make queue size small
- big refactory & abstraction, code is more slim now
Merge branch 'biz' of github.com:dianping/cat into biz
fix database show problem