bugfixes for custom permission resource
Merge branch 'permission' of https://github.com/pi-engine/pi into permission
Merge branch 'permission' of https://github.com/pi-engine/pi into permission
Added support for group/having in counting
Added user count for roles