Fix to apply permissions during directory and file creation. During a full mkdirs(), existing directory permisions are left in place.

Also some cleanup to a few of the existing test cases (remove files + dirs that were created as part of the test).
Merge branch 'permissions' of https://github.com/gluster/hadoop-glusterfs into permissions