Fix dock detection.
Clean out obsolete code.
Make app instantly respond to config-changes.