Add "Reset" to config panel context menu to allow resetting some config settings to their default value.

Fix config panel showing settings from previously loaded connection file after loading a new one.
Code cleanup.