Added the clearstatcache call before enabling or disabling modules, as this prevents a 'File exists' error that occurs sometimes on symlink creation (even when the folder is empty). Also added tests for teh moduleManager refs #4092
Rename docs, tests and test/ui to doc, test and test/frontend to suite skeleton definition. refs #4212