Implementing a prettier splash screen.

Making dialogs centered with javascript to fix a rendering glitch.
Fixes #181. Fixes #218.