Got the GUI up and running

Was pretty crazy, figured it out though. Need to hook up lots still but
the core is working! If you have a graph open, use the quit in the file
menu or it might not exit properly.