Fix #198: add gevent inputhook for IPython

This seems to do the trick at least on Ubuntu 14.04 and with current gevent and IPython.