update the IPython api

the first cut was a bit raw
add the IPythonConsole to the api module