Add IPythonTerminate to close ipython

There's no apparent interface to close ipython aside from sending it a
terminate message, so make a command to send a terminate message.

Extracts most of interrupt_kernel_hack to send_kernel_interrupt which
takes a single argument: the signal.
Merge pull request #56 from pydave/add-terminate

Add IPythonTerminate to close ipython