Partially documented core.gui.base

This takes a loooong time to document...