IPython magic

This PR moves the legacy IPython's extensions related to Cython. It was discussed in this thread: 
https://mail.python.org/pipermail/cython-devel/2014-April/004011.html

The related issue in the IPython project is https://github.com/ipython/ipython/issues/3803

Please, let me know any change needed.