work on layout and base classes started

I replaced the deeply nested <Editor>.widgets data structure with a
Window class in the base module.