Emacs. The whole thing is a bunch of running scripts, and you can manipulate all of it almost an way that you like.  Add your own, muck with the ones that are there, even screw with things that are actively running.