small refactoring.
Moved template to core package.
added generator directive to Core.gwt.xml