CMS-1945 Improve Wizard code
Made action for close and save common in api_app_wizard, since they both only contained common repeated logic.