Add a new function loadAppConfig to provide app configs in the IO monad