change method signature, change interface, remove unused interface, fix tests
add query interface and query ckass
Merge branch 'master' of https://github.com/CortexCMS/CortexSecurity