Store preparation, other changes.
Add user-settable limits and new defaults.

BUG: Going from MainPage to SettingsPage to MainPage results in a crash.