Add preferences dialog.
Set window title correctly.
Add a title test.
Override preferences dialog init.
Support 'values' parameter with preferences.
Extend preferences dialog.