Made dialogs work better with short browser windows

Gave dialogs a max-height and made them have scrollbars if the content
doesn't fit into it.  Removed negative y-margins and made it so the
top of the window is 10% of the screen.