Support Run Mode Config

This pull request introduces a new `app.mode.conf` config support. It's helpful when working with git.