added test
update
new test
extracted static methods from ModuleGenerator
extracted newFile
make use of new TargetFile class
moved code
moved template eval code to TargetFile
A number of changes (may be too  many):
1. implemented fix for generics: <T> --> Object, <T extends C> --> C
2. about too refactor old code generation scheme, see function generation slides in beam-extapi.doc
3. whether to use deprecated classes/methods is now an option in the config