Changes to model generation - making it use enyo constructors to properly set up the instances.