implements acl check into router
fix nested model
fix sub queries support
Merge branch 'release-1.0.2'