applications: fixed get/save glboal config & global config always override user config [closes #15] & refactoring