Deprecate Module.function/3
Add Logger.flush/0
Load config/config.exs into escript

Closes #2643