Handle buttons in settings dialog.
Validate settings values before saving them.

Resolves #76.