Let code using ConfigFile be testable

Add an interface `ConfigFiler` for `ConfigFile`. Any code using `ConfigFile` can use `ConfigFiler` instead, such that they can make mock for `ConfigFiler`