Add analytics opt-in dialog on first launch.
Shown only when the `enableAnalytics` preference is undefined.
Few minor fixes:
1. Track application open event
2. Fix bug where the editor attempts to save read only files
3. Use persistent quasi-random ID for standalone version