Added editor() function to summon a textarea which currently looks like a pop-up box but should eventually be styled to fit in the console window, I just couldn't be bothered fiddling about with it right now.
Anyway, the editor() function doesn't quite seem to work as intended, since although it evaluates the code (supposedly), any definitions made within the editor window aren't available to the console.  Weird.