Fix route check

Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>
Fix count objects and offset check

Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>
Add missing indices

Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>
Fix empty count

Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>
Limit pages/posts/comments reads

- app/models/roles.js: add role to allow reading of not published pages
- app/models/roles.js: add role to allow reading of not published posts
- app/models/roles.js: add roles to allow reading of not validated/allowed comments
- app/models/*.js: fix missing indices and default values
- app/routes/api/pages.js: limit read (state published)
- app/routes/api/posts.js: limit read (state published)
- app/routes/api/comments.js: limit read (states allowed, validated)
- app/routes/api/*.js: fix search filters
- bin/shell: add support to new pages/posts/comments roles

Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>