Add Observer Pattern Between UI and SyncHandler

- Change filename in Storage to get the filename from Global
- Add return value to notifyObservers in UI
- Change getting of code in LoginManager
- Add SyncState to Global
- Add sync state updating in SyncHandler