Fix some tests in IPython.kernel
Fix IPython.kernel tests
Fix IPython.kernel.inprocess tests
Fix IPython.qt tests
More changes to get Qt console working