wait until websockets in the ipython kernel are ready before sending the...

... initialization code over them.  fix Issue #478.