Cleanup config

Hide dependent settings while the setting they depend on is disabled.
Cleanup impossible setups on save.

Fix that strange mixed case writing of abbreviations.