Move object inspection machinery out of the magics code....
Move object inspection machinery out of the magics code.
Later we'll put this into a standalone object, but the least intrusive
change for now is to put it in the main interactive shell object. At
least now it's not embedded in the magics code, and we can start using
this programatically via the messaging api.