Fix reading local prefixes.json
Saving offline mode state
Fix crash on try to join server in offline mode