194 ui xml

Pulled out as much UI creation as possible into XML.

I tried my best not to break any of these, and I think I didn't, but @jcadek certainly knows what this stuff is supposed to do better than myself.

This pull improves the dialog UI in my opinion, but I am not happy with it yet. Asking the user to type in a number between 1 and 100 is bad UX (wasn't even enforcing digits only before) &emdash; I'll probably come back later and convert some of this stuff to more appropriate controls like sliders and increment/decrementers.