ninjudd's cake at master - GitHub - should I take a look at this? Especially the persistent JVM when using scripts could be interesting.