Codebase overhaul

Yes, it's one of _those_.

Anyway, most of the GUI stuff has been updated in the codebase, which is
pretty cool. I still have work to do as far as the GUI is concerned, but
it should go much faster now.