Add icon and extension properties to FileManager
Remove icon parameter. It will use editor.file.icon.

If you want to put your own icons, just inherit from FileManager and set it on the editor, e.g.::

    editor.file = MyFileManager()
Better logging level
Improve examples
Improve save to file

reafactoring  better enconding management in case of errot