Add classes for file access right management.

Slight code improvements (style, lint, clean methods).