Made the "Make a Variable" dialog a form
Fixed some focus issues with dialogs

This addresses #24 but is incomplete.