New design for Config system

The Config system has been revised and updated. Now it is more
generic.