Remove support for external scripting languages.

Fixes #5920
Allow anonymous functions to be garbage-collected.

Fixes #5921
Allow functions to return values.

Fixes #5922