CMS-2981 Modal window - adjustments to padding and header

- refactored modal dialogs layout and centering method
- removed size properties from constructor
- defined default sizes in css and custom overrides