Add "IPython.Hook".

A Hook is a sequence of callbacks which are executed in order based on
their nice value (lower nice values are executed first).
Hooks can be used by extensions to customize the notebook behaviour.