gui: Add support for connecting to a running core

Signed-off-by: Michael Buesch <m@bues.ch>