Converted to FP Complete Haskell Center
First elements of common code: configuration and log.