CMS-4731 Modal Window - Cancel by clicking outside

Added outside click listener to the `ModalDialog`.
Merge pull request #1108 from enonic/CMS-4731

CMS-4731 Modal Window - Cancel by clicking outside