Confirm settings and reset to default call coresponding methods in hotkey_interface.py.

This was done by storing the HotkeyConfiguration in the settingsDialog and calling te corresponding methods before calling applySettings() and setDefaults() from the settingsDialog.
Clean up some imports
Add comments.