Tcl for Web Nerds
philip.greenspun.com
philip.greenspun.com
Using TCL, it is possible to write an app which has a CLI client which matching the REST interface and can interpret written scripts. This has proven to be quite powerful in my experience.
The other thing is that embedded language sandboxes usually aren't so different that supporting other languages for scripting operations isn't a big deal. Where I used this, it was also possible to POST javascript to the server to batch execute API commands that would otherwise have to be performed via REST. Our client-side javascript API worked the same as the server-side API, so code could be written and run locally, or shipped to the server for batch processing.
If you want to code in TCL for the web, we'd love to hear from you.