I really liked the "command-line in a web page" thing that Goosh has going on, so last night I made a quick skeleton of a general-purpose "command-line" web page.
Just add JavaScript or AJAX to do whatever you want. You can try it out, and get the source, here:
http://stevenf.com/downloads/cmdline.html