Should take care of (unlikely but posible) negative number of unapproved topics

Signed-off-by: emanuele <emanuele45@gmail.com>
I tend to think integration hooks should stay in reports, but since reports are switchable, maintenance is the less meaningless

Signed-off-by: emanuele <emanuele45@gmail.com>
A warning

Signed-off-by: emanuele <emanuele45@gmail.com>
A couple of queries less in ManageAttachments.controller

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #1058 from emanuele45/rand

A couple of random things