Fixes #2826: only run set_code() on submit if the config template editor is already in diff mode
fixes #2801 - remove LOWER() in default_scope of models that could cause PG error
fixes #2813 - move Foreman::Provision::SSH files back to /lib so it does not fail on startup for non-fog installations
fixes #2809 - send host subject as xpi opt to prevent ssl connect errors