added ability for repl to wait for deferred #11
changed ipython stuff to return .repl_pause=true when appropiate #11