Adjust the position of modal dialogues

The top was off the top of the window
Refactor importing of encrypted TiddlyWiki files so that it works on Node.js