Added scheduling to app config.

Scheduling is now configurable via ENV variable.
Used internally and UI.