Added `localCache` and removed old code

Added ->setCache() to `Notoj`, `Dir` and `File` classes. This will give the posibility to manage local cache instead of relying in the global cache which may be set or not.