NR-56 : Design and implement the security plugin API

Preliminary refactorings and acl security
implementation, added also a distribution manager
for the application.