cache dir creation with correct file mod
added options to set mode (used by mkdir and chmod)  for cache directory and files
changed formatting
added tests for CFileCache cacheFileMode and cachePathMode