Basic GUI Stuff

Implements the basic functionallity of the GUI. Some minor changes on
the logic. TODO Some way to build circuits.