New map-based system to change settings

With support for old variables which will be removed at some point in
the future