Support for widgettemplates

Closes #60
+ name attribute for components: closes #57