De-duplicate code in Widgets

Reduce UI code duplication by making Widget inherit Delegator and
making better use of inheritance for subclasses, unifying functionality
for hide and show.
Use the events hash for Editor and Viewer
Make the Adder a Widget
Merge pull request #381 from tilgovi/widget-unification

Widget unification