config: Add deprecated config value support.

This makes it possible to mark a key as deprecated, this implies it will be
ignored if present, and never included in the resulting config.