fix modal dialog killing scrolling bug, & other improvements

fixes #158
stop removing modal on hide, which seemed to be causing this bug
instead, create the dialog only once and just hide when done
this has the side effect that content stays in the dialog
(i think this is a feature)
also put focus on password input & select current
more modal dialog improvements

fix select and clear in import dialog