Merge pull request #623 from leonindy/master

refactor query rule methods
fix a js bug in rule config template
Merge branch 'master' of https://github.com/dianping/cat