Get gui/engine communication functional, fix misc GUI issues.  Plug a couple leaks in the engine.