Initial work on fs.chmod
Updates/fixes
Add windows mode conversion for unix permissions
Update tests for windows