Preference menu, fix for JSON

Added preferences menu and settings store. Now the settings are saved
persistently. Also now on start the app loads local JSON data file and
then it can be overwritten by pushing refresh button.