GUI compatible and custom path

Added settings.json for settings custom path in that file
Copy identities.json and settings.json to appdata
History file will be saved in custom path.
From now on you can save file chunks to custom path
Fix tests-unit.py to work with new version