Major Gui refactoring

The gui is now much more structured and it's much easier to add building
categories.