[427799] Make CRD's code more modular

Separate the logic which refreshes the controlled resources from the
glue which invokes it in pre-commit (and at other times in DASI).

Also, use addUnique() if possible to register the newly discovered
controlled resources and use better names in some places.

Bug: 427799
Change-Id: If17ba5cf8e33520772a8ce1c2fd32587dba04740
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
3 files changed