Reducing Security uids from invalidated documents
Whenever a document (project, Instance Tree, Compute Node,...) is invalidated update local roles on the to drop roles from those documents.
This might not immediately drop the size of roles_and_users table, but it allows the alarm be used to trim the table later on.
It is important to remark that this aims to deduce some axis (local roles groups categories) except for 'user' for now. User might be rarely disabled for real, because it is likely to be kept if it is not active for a period of time. So, the optimization of the Security UIDs size for 'user' local role group should be handled by some “User deactivation” action (Close/Delete my account), that is mostly not reversible (except by a massive cost) and outside the scope of this MR.