Changed how runtime classes / method are referenced. Instead of pasting
the code into every generated class, references to the classes are kept
and statically imported into newly generated classes.

Environment variables are only put into a generated class if they are
used in that class (or appear to be used, I'm just using a simple string
search)