Add support for chmod, fchmod, and fchmodat syscalls.  Also adds support...

... for file mode.
These additions breaks our latest changes on dev branch, they need a merge.