CMS-1752 Create SaveChangesBeforeCloseDialog for wizard

Refactoring for all apps
Merge pull request #311 from enonic/CMS-1752

CMS-1752 Create SaveChangesBeforeCloseDialog for wizard