Set the kernel post function directly.

Requires my modifications to IPython kernel js file, commit 4e3aea89f96b48744bec880e8b5f5596e2d27a50 of IPython repository.