An Application for launching a kernel
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
display connection info, and store ports
write connection info to JSON file