Implemented vfsLocalDir & vfsDirBase.
Improved ThreadBase.
Minor fixes.