KCFinder fixes

- no more troubles with wrong paths (tested with normal and subfolder installations);
- perfomance fix from https://github.com/dmi3yy/modx.evo.custom ;
- using files and folders permissions from system settings;