An Application for launching a kernel
cleanup ipc files if we wrote them
redirects stdout/stderr to devnull if necessary
Enable GUI event loop integration, taking pylab into account.
start the heart beating
Redirect input streams and set a display hook.
Create the Kernel object itself
create our session object
load ip/port/hmac config from JSON connection file
display connection info, and store ports
write connection info to JSON file