Files: Implemented permissions (close #90)