Allow snippets to determine how they are executed.
Rework the snippet testing stuff so we can test pure Java snippets compiled by the Java compiler.