Apply settings

Attempts to address #53 by adding an 'Apply' button to the settings dialog.