Add confit library, default configuration
Implement config system, decouple UI code