Set is_templated for applications config and reset config on disabling 1) Fix bug: the is_templated property of application config was not set resulted wrong calculation of dependencies for template applications 2) Reset application config on set_enabled() and set_disabled() calls This is needed for transition to new application config, see ADTCC-177