Added basic mime support

To make life easier JS functions are Js.Unsafe.[fun_]call'd in the ocaml
to a function in toplevel_runtime which in turn accesses the ipython
class hierarchy.  With some hacking we do probably access this directly
though figuring out the appropriate types is a pain.