[Scopes] Synchronize scopes and filters (fix issue60)

3 main changes in this PR:
 1. Move `processScopes` to `commonAdmin` directory
 1. Synchronize filters and scopes (fix issue #60 )
 1. Fix multi-group scopes management (especially for generated views)

Demo repository updated to test this behavior.

PR ready to merge, waiting for your feedbacks

/cc @loostro 
It seems this adds one unnecessary line. Any reason for creating a variable here? I don't see it used in this block.