add a generic generator tweaks code facility

- Change the "add TException" code to use a code tweak.
- add a code tweak for the Closeable interface, remove the hardcoded method from the templates.
- add a code tweak for extending RuntimException instead of Exception.

- update maven plugin to allow all tweaks.