Changes to make the plugin work.

Generating from entities now works. Other things like template installation and usage of project specific templates may not.