jshint fixes
Issue #27 Widgets are now added to a "widgets" object of the ancestor widget.

In legacy mode widgets will continue to be added to the ancestor widget to maintain backwards compatibility.