Flow exception handling
Flow exception saving + initial JS for UI, bit of CS refactoring for config dialogs