update to widget.directive to support new widget.metadata.template architecture
update to widget.directive to support new widget.metadata.template architecture

xaun/impac-angular,xaun/impac-angular,cesar-tonnoir/impac-angular,maestrano/impac-angular,cesar-tonnoir/impac-angular,maestrano/impac-angular