Add classes for file access right management.

Slight code improvements (style, lint, clean methods).
Merge remote-tracking branch 'origin/topic/bf_file_sync_permissions' into develop
Raise if try to push empty collection.