Change errorHandler to use DOMError (FileError is deprecated), cosmetic changes on renameDir, add renameFile functionality