Global IDEA code format. No real changes.
More preferences and sync scheduler operation out of application class.