Refactors dialogs. Fixes #580

* makes the overlay scrollable, if the dialog is larger than the screen. Fixes #580 
* prevents the body from scrolling, so no double scrollbars happens.
* makes all dialogs, not only non-modal ones draggable