Always allow the owner and root to use chmod

Using chmod was only allowed if the user asking for it had writing
permissions but it should simply check if the user is root or the
owner of the file.
test: Update chmod use in Dir/FilePermissions

Check that the owner and root are always able to chmod.
Add getFsInfo method

This allows to quickly get the object that represents a path (file or
directory), if it exists.