First crack at restartlessness.

Now shinier, with prefs and localization.