Add presets.

Implements full rewriting of the configuration file.