Add Java support

Add transpiling of layout code and tests to Java.

The main change that affects transpiling to c is I introduced being able to specify what language a comment in JS applies to. See src/Layout.js:240.