Move all configuration classes to a dedicated subpackage

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>
More moving around

* Also move RefSanityChecks to the new cfg package.
* Move all configuration messages to a dedicated enum.

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>